diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-02-22 20:56:09 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-02-23 18:16:45 +0800 |
commit | 61e6bb12478740d614c8effd330f881f962b7b84 (patch) | |
tree | 71109a9d02fd7d0b243994b5584618b9e8b46d7b /swarm/network/kademlia/kaddb.go | |
parent | d4fd06c3dc6cd6d2dbd2bfebfee5bcb46a504851 (diff) | |
download | dexon-61e6bb12478740d614c8effd330f881f962b7b84.tar dexon-61e6bb12478740d614c8effd330f881f962b7b84.tar.gz dexon-61e6bb12478740d614c8effd330f881f962b7b84.tar.bz2 dexon-61e6bb12478740d614c8effd330f881f962b7b84.tar.lz dexon-61e6bb12478740d614c8effd330f881f962b7b84.tar.xz dexon-61e6bb12478740d614c8effd330f881f962b7b84.tar.zst dexon-61e6bb12478740d614c8effd330f881f962b7b84.zip |
eth, les, swarm: fix go vet issues sufraced by log15
Diffstat (limited to 'swarm/network/kademlia/kaddb.go')
-rw-r--r-- | swarm/network/kademlia/kaddb.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/swarm/network/kademlia/kaddb.go b/swarm/network/kademlia/kaddb.go index f4279917e..3e4b261fd 100644 --- a/swarm/network/kademlia/kaddb.go +++ b/swarm/network/kademlia/kaddb.go @@ -120,7 +120,7 @@ func (self *KadDb) add(nrs []*NodeRecord, proximityBin func(Address) int) { copy(newnodes[:], nodes[:dbcursor]) newnodes[dbcursor] = node copy(newnodes[dbcursor+1:], nodes[dbcursor:]) - log.Trace(fmt.Sprintf("new nodes: %v (keys: %v)\nnodes: %v", newnodes, nodes)) + log.Trace(fmt.Sprintf("new nodes: %v, nodes: %v", newnodes, nodes)) self.Nodes[index] = newnodes n++ } @@ -294,7 +294,7 @@ func (self *KadDb) save(path string, cb func(*NodeRecord, Node)) error { } err = ioutil.WriteFile(path, data, os.ModePerm) if err != nil { - log.Warn(fmt.Sprintf("unable to save kaddb with %v nodes to %v: err", n, path, err)) + log.Warn(fmt.Sprintf("unable to save kaddb with %v nodes to %v: %v", n, path, err)) } else { log.Info(fmt.Sprintf("saved kaddb with %v nodes to %v", n, path)) } |