mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-09 15:46:43 +00:00
server: fix linter error
This commit is contained in:
parent
04f0b5338a
commit
2842f933bb
@ -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…
x
Reference in New Issue
Block a user