From d6104094c8b4d749af14266c5244f5e71032e0f6 Mon Sep 17 00:00:00 2001 From: vyzo Date: Mon, 19 Feb 2018 14:10:24 +0200 Subject: [PATCH] increase timeCache length to 120s --- pubsub.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubsub.go b/pubsub.go index aaea49a..4362b3e 100644 --- a/pubsub.go +++ b/pubsub.go @@ -139,7 +139,7 @@ func NewPubSub(ctx context.Context, h host.Host, rt PubSubRouter, opts ...Option topics: make(map[string]map[peer.ID]struct{}), peers: make(map[peer.ID]chan *RPC), topicVals: make(map[string]*topicVal), - seenMessages: timecache.NewTimeCache(time.Second * 30), + seenMessages: timecache.NewTimeCache(time.Second * 120), counter: uint64(time.Now().UnixNano()), }