addnode fail to add should log not error (#446)
This commit is contained in:
parent
4a51db2344
commit
0d28101085
@ -12,6 +12,7 @@ import (
|
||||
"path/filepath"
|
||||
|
||||
"github.com/zeebo/errs"
|
||||
"go.uber.org/zap"
|
||||
"google.golang.org/grpc"
|
||||
|
||||
"storj.io/storj/pkg/dht"
|
||||
@ -69,9 +70,12 @@ func NewKademlia(id dht.NodeID, bootstrapNodes []pb.Node, address string, identi
|
||||
|
||||
for _, v := range bootstrapNodes {
|
||||
ok, err := rt.addNode(&v)
|
||||
if !ok || err != nil {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if !ok {
|
||||
zap.L().Warn("Failed to add node", zap.String("NodeID", v.Id))
|
||||
}
|
||||
}
|
||||
|
||||
k := &Kademlia{
|
||||
|
Loading…
Reference in New Issue
Block a user