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:
Dave Collins 2016-02-10 21:34:43 -06:00
parent d759d1d3df
commit d127ad4083

View file

@ -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