mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-02-18 03:23:13 +00:00
increase timeCache length to 120s
This commit is contained in:
parent
458c75b33f
commit
d6104094c8
@ -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()),
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user