mirror of
https://github.com/logos-messaging/logos-messaging-go.git
synced 2026-01-05 23:43:05 +00:00
chore: increase maxContentFilter limit for Filter protocol to 100 (#1000)
This commit is contained in:
parent
68c0ee2598
commit
4e19d93da1
@ -4,10 +4,11 @@ import (
|
||||
"context"
|
||||
"crypto/rand"
|
||||
"encoding/hex"
|
||||
"github.com/waku-org/go-waku/waku/v2/protocol/filter/pb"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/waku-org/go-waku/waku/v2/protocol/filter/pb"
|
||||
|
||||
"github.com/libp2p/go-libp2p/core/peerstore"
|
||||
"github.com/waku-org/go-waku/tests"
|
||||
"github.com/waku-org/go-waku/waku/v2/protocol"
|
||||
@ -195,7 +196,7 @@ func (s *FilterTestSuite) TestSubscriptionRefresh() {
|
||||
}
|
||||
|
||||
func (s *FilterTestSuite) TestContentTopicsLimit() {
|
||||
var maxContentTopics = 30
|
||||
var maxContentTopics = pb.MaxContentTopicsPerRequest
|
||||
|
||||
// Create test context
|
||||
s.ctx, s.ctxCancel = context.WithTimeout(context.Background(), 20*time.Second) // Test can't exceed 10 seconds
|
||||
|
||||
@ -7,7 +7,7 @@ import (
|
||||
"golang.org/x/exp/slices"
|
||||
)
|
||||
|
||||
const MaxContentTopicsPerRequest = 30
|
||||
const MaxContentTopicsPerRequest = 100
|
||||
|
||||
var (
|
||||
errMissingRequestID = errors.New("missing RequestId field")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user