[#607] *: Do not use deprecated elements of code

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-06-23 15:27:00 +03:00 committed by Leonard Lyubich
parent cbe20a2bac
commit 43eff09944
11 changed files with 42 additions and 34 deletions

View file

@ -3,6 +3,7 @@ package innerring
import (
"context"
"crypto/ecdsa"
"encoding/hex"
"fmt"
"time"
@ -80,7 +81,7 @@ func (c *ClientCache) getSG(ctx context.Context, addr *object.Address, nm *netma
err := netAddr.FromIterator(node)
if err != nil {
c.log.Warn("can't parse remote address",
zap.String("address", node.Address()),
zap.String("key", hex.EncodeToString(node.PublicKey())),
zap.String("error", err.Error()))
continue