forked from TrueCloudLab/frostfs-node
[#84] Remove mocks and debug code from neofs-node services
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
b5aef1011b
commit
0e7e0bd2d6
5 changed files with 3 additions and 256 deletions
|
@ -6,7 +6,6 @@ import (
|
|||
"sync"
|
||||
|
||||
"github.com/mr-tron/base58"
|
||||
objectSDK "github.com/nspcc-dev/neofs-api-go/pkg/object"
|
||||
"github.com/nspcc-dev/neofs-api-go/pkg/owner"
|
||||
"github.com/nspcc-dev/neofs-api-go/v2/object"
|
||||
objectGRPC "github.com/nspcc-dev/neofs-api-go/v2/object/grpc"
|
||||
|
@ -33,9 +32,7 @@ import (
|
|||
searchsvcV2 "github.com/nspcc-dev/neofs-node/pkg/services/object/search/v2"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/services/object/util"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/services/object_manager/gc"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/util/logger"
|
||||
"github.com/panjf2000/ants/v2"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
type objectSvc struct {
|
||||
|
@ -163,19 +160,6 @@ func (s *objectSvc) GetRangeHash(ctx context.Context, req *object.GetRangeHashRe
|
|||
return s.rngHash.GetRangeHash(ctx, req)
|
||||
}
|
||||
|
||||
type deleteHandler struct {
|
||||
log *logger.Logger
|
||||
}
|
||||
|
||||
func (s *deleteHandler) DeleteObjects(list ...*objectSDK.Address) {
|
||||
for i := range list {
|
||||
s.log.Info("object is marked for removal",
|
||||
zap.String("CID", base58.Encode(list[i].GetContainerID().ToV2().GetValue())),
|
||||
zap.String("ID", base58.Encode(list[i].GetObjectID().ToV2().GetValue())),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
func initObjectService(c *cfg) {
|
||||
ls := localstore.New(
|
||||
c.cfgObject.blobstorage,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue