From 0dcc397bf330cc57662289077042a7599c6f2fcb Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 9 Nov 2021 10:07:02 +0100 Subject: [PATCH] Fix runtime single record provider key check --- runtime/singe_record_provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/singe_record_provider.go b/runtime/singe_record_provider.go index 0688cb4..6f232b5 100644 --- a/runtime/singe_record_provider.go +++ b/runtime/singe_record_provider.go @@ -38,7 +38,7 @@ func (sr *singleRecordReader) Set(_ record.Record) (record.Record, error) { // Get implements ValueProvider.Get and returns the wrapped record.Record // but only if keyOrPrefix exactly matches the records database key. func (sr *singleRecordReader) Get(keyOrPrefix string) ([]record.Record, error) { - if keyOrPrefix != sr.Record.Key() { + if keyOrPrefix != sr.Record.DatabaseKey() { return nil, nil } return []record.Record{sr.Record}, nil