log when dropping messages
This commit is contained in:
parent
02b9c5724d
commit
e7faa78d7c
|
@ -346,6 +346,7 @@ func (p *PubSub) publishMessage(from peer.ID, msg *pb.Message) error {
|
||||||
select {
|
select {
|
||||||
case mch <- out:
|
case mch <- out:
|
||||||
default:
|
default:
|
||||||
|
log.Infof("dropping message to peer %s: queue full", pid)
|
||||||
// Drop it. The peer is too slow.
|
// Drop it. The peer is too slow.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue