increase timeCache length to 120s

This commit is contained in:
vyzo 2018-02-19 14:10:24 +02:00 committed by Steven Allen
parent 458c75b33f
commit d6104094c8

View File

@ -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()),
}