[#613] pkg/innerring/reputation: Add FIXME
to ToV2
usage
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
ed9a5e44b6
commit
68c7f6ce8a
2 changed files with 3 additions and 0 deletions
|
@ -12,6 +12,7 @@ func (rp *Processor) handlePutReputation(ev event.Event) {
|
|||
put := ev.(reputationEvent.Put)
|
||||
peerID := put.PeerID()
|
||||
|
||||
// FIXME: do not use `ToV2` method outside neofs-api-go library
|
||||
rp.log.Info("notification",
|
||||
zap.String("type", "reputation put"),
|
||||
zap.String("peer_id", hex.EncodeToString(peerID.ToV2().GetPublicKey())))
|
||||
|
|
|
@ -56,6 +56,7 @@ func (rp *Processor) processPut(epoch uint64, id apireputation.PeerID, value api
|
|||
|
||||
err := rp.reputationWrp.Put(args)
|
||||
if err != nil {
|
||||
// FIXME: do not use `ToV2` method outside neofs-api-go library
|
||||
rp.log.Warn("can't send approval tx for reputation value",
|
||||
zap.String("peer_id", hex.EncodeToString(id.ToV2().GetPublicKey())),
|
||||
zap.String("error", err.Error()))
|
||||
|
@ -69,6 +70,7 @@ func (rp *Processor) checkManagers(e uint64, mng apireputation.PeerID, peer apir
|
|||
}
|
||||
|
||||
for _, m := range mm {
|
||||
// FIXME: do not use `ToV2` method outside neofs-api-go library
|
||||
if bytes.Equal(mng.ToV2().GetPublicKey(), m.PublicKey()) {
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue