mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-05-28 11:29:26 +00:00
add TODO for reliable announcements
This commit is contained in:
parent
b09c9d1a48
commit
458c75b33f
@ -323,6 +323,8 @@ func (p *PubSub) announce(topic string, sub bool) {
|
|||||||
select {
|
select {
|
||||||
case peer <- out:
|
case peer <- out:
|
||||||
default:
|
default:
|
||||||
|
// TODO this needs to be reliable, schedule it for piggybacking
|
||||||
|
// in a subsequent message or retry later
|
||||||
log.Infof("dropping announce message to peer %s: queue full", pid)
|
log.Infof("dropping announce message to peer %s: queue full", pid)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user