server: fix linter error
This commit is contained in:
parent
04f0b5338a
commit
2842f933bb
1 changed files with 1 additions and 1 deletions
|
@ -902,7 +902,7 @@ func (sp *serverPeer) OnAddr(_ *peer.Peer, msg *wire.MsgAddr) {
|
||||||
// A message that has no addresses is invalid.
|
// A message that has no addresses is invalid.
|
||||||
if len(msg.AddrList) == 0 {
|
if len(msg.AddrList) == 0 {
|
||||||
peerLog.Errorf("Command [%s] from %s does not contain any addresses",
|
peerLog.Errorf("Command [%s] from %s does not contain any addresses",
|
||||||
msg.Command(), sp)
|
msg.Command(), sp.Peer)
|
||||||
sp.Disconnect()
|
sp.Disconnect()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue