[#1523] writecache: Remove cloneBytes
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
ddaed283e9
commit
5aa3defc67
2 changed files with 4 additions and 8 deletions
|
@ -1,6 +1,7 @@
|
|||
package writecache
|
||||
|
||||
import (
|
||||
"github.com/nspcc-dev/neo-go/pkg/util/slice"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/local_object_storage/blobstor/common"
|
||||
apistatus "github.com/nspcc-dev/neofs-sdk-go/client/status"
|
||||
objectSDK "github.com/nspcc-dev/neofs-sdk-go/object"
|
||||
|
@ -66,7 +67,7 @@ func Get(db *bbolt.DB, key []byte) ([]byte, error) {
|
|||
|
||||
return errNotFound
|
||||
}
|
||||
value = cloneBytes(value)
|
||||
value = slice.Copy(value)
|
||||
return nil
|
||||
})
|
||||
return value, err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue