mirror of https://github.com/status-im/go-waku.git
chore: modifying defaults for filter serviceNode (#1126)
This commit is contained in:
parent
32da07cad9
commit
b3b8f709a5
|
@ -5,10 +5,11 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
const DefaultMaxSubscriptions = 1000
|
||||
const DefaultMaxSubscribers = 20
|
||||
const MaxCriteriaPerSubscription = 1000
|
||||
const MaxContentTopicsPerRequest = 30
|
||||
const MaxContentTopicsPerRequest = 100
|
||||
const MessagePushTimeout = 20 * time.Second
|
||||
const DefaultIdleSubscriptionTimeout = 5 * time.Minute
|
||||
|
||||
type FilterError struct {
|
||||
Code int
|
||||
|
|
|
@ -204,7 +204,7 @@ func WithPeerManager(pm *peermanager.PeerManager) Option {
|
|||
|
||||
func DefaultOptions() []Option {
|
||||
return []Option{
|
||||
WithTimeout(5 * time.Minute),
|
||||
WithMaxSubscribers(DefaultMaxSubscriptions),
|
||||
WithTimeout(DefaultIdleSubscriptionTimeout),
|
||||
WithMaxSubscribers(DefaultMaxSubscribers),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue