mirror of
https://github.com/logos-messaging/logos-messaging-go.git
synced 2026-01-07 16:33:08 +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"
|
"context"
|
||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"github.com/waku-org/go-waku/waku/v2/protocol/filter/pb"
|
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/waku-org/go-waku/waku/v2/protocol/filter/pb"
|
||||||
|
|
||||||
"github.com/libp2p/go-libp2p/core/peerstore"
|
"github.com/libp2p/go-libp2p/core/peerstore"
|
||||||
"github.com/waku-org/go-waku/tests"
|
"github.com/waku-org/go-waku/tests"
|
||||||
"github.com/waku-org/go-waku/waku/v2/protocol"
|
"github.com/waku-org/go-waku/waku/v2/protocol"
|
||||||
@ -195,7 +196,7 @@ func (s *FilterTestSuite) TestSubscriptionRefresh() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *FilterTestSuite) TestContentTopicsLimit() {
|
func (s *FilterTestSuite) TestContentTopicsLimit() {
|
||||||
var maxContentTopics = 30
|
var maxContentTopics = pb.MaxContentTopicsPerRequest
|
||||||
|
|
||||||
// Create test context
|
// Create test context
|
||||||
s.ctx, s.ctxCancel = context.WithTimeout(context.Background(), 20*time.Second) // Test can't exceed 10 seconds
|
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"
|
"golang.org/x/exp/slices"
|
||||||
)
|
)
|
||||||
|
|
||||||
const MaxContentTopicsPerRequest = 30
|
const MaxContentTopicsPerRequest = 100
|
||||||
|
|
||||||
var (
|
var (
|
||||||
errMissingRequestID = errors.New("missing RequestId field")
|
errMissingRequestID = errors.New("missing RequestId field")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user