From 458c75b33fca54da76a66e6694f6986fef07fe7a Mon Sep 17 00:00:00 2001 From: vyzo Date: Mon, 19 Feb 2018 14:07:18 +0200 Subject: [PATCH] add TODO for reliable announcements --- pubsub.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pubsub.go b/pubsub.go index b21e5ab..aaea49a 100644 --- a/pubsub.go +++ b/pubsub.go @@ -323,6 +323,8 @@ func (p *PubSub) announce(topic string, sub bool) { select { case peer <- out: 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) } }