Update error message

This commit is contained in:
Yury Gargay
2023-09-19 13:48:54 +02:00
parent 3e20f23646
commit 206d903de5

View File

@@ -74,7 +74,7 @@ func (p *PeersUpdateManager) closeChannel(peerID string) {
if ch, ok := p.peerChannels.LoadAndDelete(peerID); ok { if ch, ok := p.peerChannels.LoadAndDelete(peerID); ok {
channel, ok := ch.(UpdateChannel) channel, ok := ch.(UpdateChannel)
if !ok { if !ok {
log.Errorf("could not cast to chan *UpdateMessage") log.Errorf("could not cast to UpdateChannel")
} }
p.len.Add(-1) p.len.Add(-1)
close(channel) close(channel)