[#75] policy: Fix compiler error
Refs #71 Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
e0f6fe3bc9
commit
6e72d0b3b4
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue