Move to frostfs-node

Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
This commit is contained in:
Pavel Karpy 2022-12-23 20:35:35 +03:00 committed by Stanislav Bogatyrev
parent 42554a9298
commit 923f84722a
934 changed files with 3470 additions and 3451 deletions

View file

@ -6,9 +6,9 @@ import (
"errors"
"fmt"
repClient "github.com/nspcc-dev/neofs-node/pkg/morph/client/reputation"
reputationEvent "github.com/nspcc-dev/neofs-node/pkg/morph/event/reputation"
apireputation "github.com/nspcc-dev/neofs-sdk-go/reputation"
repClient "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/reputation"
reputationEvent "github.com/TrueCloudLab/frostfs-node/pkg/morph/event/reputation"
apireputation "github.com/TrueCloudLab/frostfs-sdk-go/reputation"
"go.uber.org/zap"
)
@ -63,7 +63,7 @@ func (rp *Processor) checkManagers(e uint64, mng apireputation.PeerID, peer apir
}
for _, m := range mm {
// FIXME: #1147 do not use `ToV2` method outside neofs-api-go library
// FIXME: #1147 do not use `ToV2` method outside frostfs-api-go library
if bytes.Equal(mng.PublicKey(), m.PublicKey()) {
return nil
}
@ -90,7 +90,7 @@ func (rp *Processor) approvePutReputation(e *reputationEvent.Put) {
err = rp.reputationWrp.Put(args)
}
if err != nil {
// FIXME: #1147 do not use `ToV2` method outside neofs-api-go library
// FIXME: #1147 do not use `ToV2` method outside frostfs-api-go library
rp.log.Warn("can't send approval tx for reputation value",
zap.String("peer_id", hex.EncodeToString(id.PublicKey())),
zap.String("error", err.Error()))