forked from TrueCloudLab/frostfs-node
[#607] *: Do not use deprecated elements of code
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
cbe20a2bac
commit
43eff09944
11 changed files with 42 additions and 34 deletions
|
@ -2,6 +2,7 @@ package auditor
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/hex"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
|
@ -117,7 +118,7 @@ func (c *Context) collectHashes(p *gamePair) {
|
|||
if err != nil {
|
||||
c.log.Debug("could not get payload range hash",
|
||||
zap.Stringer("id", p.id),
|
||||
zap.String("node", n.Address()),
|
||||
zap.String("node", hex.EncodeToString(n.PublicKey())),
|
||||
zap.String("error", err.Error()),
|
||||
)
|
||||
return
|
||||
|
|
|
@ -2,6 +2,7 @@ package auditor
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/hex"
|
||||
"sync"
|
||||
|
||||
"github.com/nspcc-dev/neofs-api-go/pkg/object"
|
||||
|
@ -80,7 +81,7 @@ func (c *Context) checkStorageGroupPoR(ind int, sg *object.ID) {
|
|||
hdr, err := c.cnrCom.GetHeader(c.task, flat[j], members[i], true)
|
||||
if err != nil {
|
||||
c.log.Debug("can't head object",
|
||||
zap.String("remote_node", flat[j].Address()),
|
||||
zap.String("remote_node", hex.EncodeToString(flat[j].PublicKey())),
|
||||
zap.Stringer("oid", members[i]))
|
||||
|
||||
continue
|
||||
|
|
|
@ -407,7 +407,7 @@ func testNodeMatrix(t testing.TB, dim []int) ([]netmap.Nodes, [][]string) {
|
|||
)
|
||||
|
||||
ni := netmap.NewNodeInfo()
|
||||
ni.SetAddress(a)
|
||||
ni.SetAddresses(a)
|
||||
|
||||
var na network.AddressGroup
|
||||
|
||||
|
|
|
@ -201,7 +201,7 @@ func testNodeMatrix(t testing.TB, dim []int) ([]netmap.Nodes, [][]string) {
|
|||
)
|
||||
|
||||
ni := netmap.NewNodeInfo()
|
||||
ni.SetAddress(a)
|
||||
ni.SetAddresses(a)
|
||||
|
||||
var na network.AddressGroup
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ func (b testBuilder) BuildPlacement(*object.Address, *netmap.PlacementPolicy) ([
|
|||
}
|
||||
|
||||
func testNode(v uint32) (n netmap.NodeInfo) {
|
||||
n.SetAddress("/ip4/0.0.0.0/tcp/" + strconv.Itoa(int(v)))
|
||||
n.SetAddresses("/ip4/0.0.0.0/tcp/" + strconv.Itoa(int(v)))
|
||||
|
||||
return n
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue