[#75] policy: Fix compiler error
All checks were successful
DCO action / DCO (pull_request) Successful in 1m36s
Tests / Tests (1.20) (pull_request) Successful in 1m55s
Tests / Tests (1.19) (pull_request) Successful in 2m14s

Refs #71

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2024-01-30 16:34:40 +03:00
parent e0f6fe3bc9
commit 6e72d0b3b4

View file

@ -211,6 +211,7 @@ func ListChainsByPrefix(entity Kind, entityName string, prefix []byte) [][]byte
func IteratorChainsByPrefix(entity Kind, entityName string, prefix []byte) iterator.Iterator { func IteratorChainsByPrefix(entity Kind, entityName string, prefix []byte) iterator.Iterator {
ctx := storage.GetReadOnlyContext() ctx := storage.GetReadOnlyContext()
keyPrefix := storageKey(entity, entityName, prefix) id, _ := mapToNumeric(ctx, []byte(entityName))
keyPrefix := storageKey(entity, id, prefix)
return storage.Find(ctx, keyPrefix, storage.ValuesOnly) return storage.Find(ctx, keyPrefix, storage.ValuesOnly)
} }