[#1431] obj_storage/metabase: Delete unused variable

Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
This commit is contained in:
Alexander Chuprov 2024-10-14 17:31:15 +03:00 committed by Evgenii Stratonikov
parent 00b1cecfb7
commit f6582081a4
2 changed files with 2 additions and 6 deletions

View file

@ -59,9 +59,8 @@ func (p *PutPrm) SetIndexAttributes(v bool) {
} }
var ( var (
ErrUnknownObjectType = errors.New("unknown object type") ErrUnknownObjectType = errors.New("unknown object type")
ErrIncorrectSplitInfoUpdate = errors.New("updating split info on object without it") ErrIncorrectRootObject = errors.New("invalid root object")
ErrIncorrectRootObject = errors.New("invalid root object")
) )
// Put saves object header in metabase. Object payload expected to be cut. // Put saves object header in metabase. Object payload expected to be cut.

View file

@ -2,7 +2,6 @@ package object
import ( import (
"context" "context"
"errors"
"fmt" "fmt"
clientcore "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/core/client" clientcore "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/core/client"
@ -35,8 +34,6 @@ type RemoteRequestPrm struct {
const remoteOpTTL = 1 const remoteOpTTL = 1
var ErrNotFound = errors.New("object header not found")
// NewRemoteReader creates, initializes and returns new RemoteHeader instance. // NewRemoteReader creates, initializes and returns new RemoteHeader instance.
func NewRemoteReader(keyStorage *util.KeyStorage, cache ClientConstructor) *RemoteReader { func NewRemoteReader(keyStorage *util.KeyStorage, cache ClientConstructor) *RemoteReader {
return &RemoteReader{ return &RemoteReader{