mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-03 23:19:44 +00:00
core: drop outdated comment from storageFind
This commit is contained in:
parent
64186d0597
commit
3ab2ab5cba
1 changed files with 0 additions and 2 deletions
|
@ -189,8 +189,6 @@ func storageFind(ic *interop.Context) error {
|
||||||
if opts&istorage.FindDeserialize == 0 && (opts&istorage.FindPick0 != 0 || opts&istorage.FindPick1 != 0) {
|
if opts&istorage.FindDeserialize == 0 && (opts&istorage.FindPick0 != 0 || opts&istorage.FindPick1 != 0) {
|
||||||
return fmt.Errorf("%w: PickN is specified without Deserialize", errFindInvalidOptions)
|
return fmt.Errorf("%w: PickN is specified without Deserialize", errFindInvalidOptions)
|
||||||
}
|
}
|
||||||
// Items in seekres should be sorted by key, but GetStorageItemsWithPrefix returns
|
|
||||||
// sorted items, so no need to sort them one more time.
|
|
||||||
ctx, cancel := context.WithCancel(context.Background())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
seekres := ic.DAO.SeekAsync(ctx, stc.ID, storage.SeekRange{Prefix: prefix})
|
seekres := ic.DAO.SeekAsync(ctx, stc.ID, storage.SeekRange{Prefix: prefix})
|
||||||
item := istorage.NewIterator(seekres, prefix, opts)
|
item := istorage.NewIterator(seekres, prefix, opts)
|
||||||
|
|
Loading…
Reference in a new issue