From 3ab2ab5cba56b701e15af7aa31762dc5dcb36eb1 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 31 Mar 2022 16:39:11 +0300 Subject: [PATCH] core: drop outdated comment from storageFind --- pkg/core/interop_system.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/core/interop_system.go b/pkg/core/interop_system.go index 94b9b4eee..3a6facde2 100644 --- a/pkg/core/interop_system.go +++ b/pkg/core/interop_system.go @@ -189,8 +189,6 @@ func storageFind(ic *interop.Context) error { if opts&istorage.FindDeserialize == 0 && (opts&istorage.FindPick0 != 0 || opts&istorage.FindPick1 != 0) { 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()) seekres := ic.DAO.SeekAsync(ctx, stc.ID, storage.SeekRange{Prefix: prefix}) item := istorage.NewIterator(seekres, prefix, opts)