server: fix double hex encoded peer string

This commit is contained in:
Conner Fromknecht committed 2019-11-05 15:05:04 -08:00
1 parent 52b3d5bbf7
commit 51627ffe5f
1 file changed
+1 -1
+1 -1
View File
@@ -2915,7 +2915,7 @@ func (s *server) peerTerminationWatcher(p *peer, ready chan struct{}) {
// If there were any notification requests for when this peer
// disconnected, we can trigger them now.
srvrLog.Debugf("Notifying that peer %x is offline", p)
srvrLog.Debugf("Notifying that peer %v is offline", p)
pubStr := string(pubKey.SerializeCompressed())
for _, offlineChan := range s.peerDisconnectedListeners[pubStr] {
close(offlineChan)