server: Make consistent use of svr peer stringer.
This updates a couple of logging statements to use the serverPeer instance instead of the embedded peer.Peer so they are consistent with all of the other log statements.
This commit is contained in:
parent
d759d1d3df
commit
d127ad4083
1 changed files with 2 additions and 2 deletions
|
@ -1645,7 +1645,7 @@ out:
|
|||
case <-s.quit:
|
||||
// Disconnect all peers on server shutdown.
|
||||
state.forAllPeers(func(sp *serverPeer) {
|
||||
srvrLog.Tracef("Shutdown peer %s", sp.Peer)
|
||||
srvrLog.Tracef("Shutdown peer %s", sp)
|
||||
sp.Disconnect()
|
||||
})
|
||||
break out
|
||||
|
@ -1663,7 +1663,7 @@ out:
|
|||
if !state.NeedMoreOutbound() || len(cfg.ConnectPeers) > 0 ||
|
||||
atomic.LoadInt32(&s.shutdown) != 0 {
|
||||
state.forPendingPeers(func(sp *serverPeer) {
|
||||
srvrLog.Tracef("Shutdown peer %s", sp.Peer)
|
||||
srvrLog.Tracef("Shutdown peer %s", sp)
|
||||
sp.Disconnect()
|
||||
})
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue