chore: modifying defaults for filter serviceNode (#1126)

This commit is contained in:
Prem Chaitanya Prathi 2024-06-17 11:10:09 +05:30 committed by GitHub
parent 32da07cad9
commit b3b8f709a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

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