server: fix linter error

This commit is contained in:
Olaoluwa Osuntokun 2018-05-15 20:06:16 -07:00
parent 04f0b5338a
commit 2842f933bb

View file

@ -902,7 +902,7 @@ func (sp *serverPeer) OnAddr(_ *peer.Peer, msg *wire.MsgAddr) {
// A message that has no addresses is invalid.
if len(msg.AddrList) == 0 {
peerLog.Errorf("Command [%s] from %s does not contain any addresses",
msg.Command(), sp)
msg.Command(), sp.Peer)
sp.Disconnect()
return
}