From 122e9dee805c6afd204607c64a8629d0f59cb873 Mon Sep 17 00:00:00 2001 From: Prem Chaitanya Prathi Date: Mon, 16 Dec 2024 19:02:36 +0530 Subject: [PATCH] fix: have better defaults for send/recv rate-limits to accomodate status use-case --- waku/v2/api/publish/message_sender.go | 4 ++-- waku/v2/protocol/filter/options.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/waku/v2/api/publish/message_sender.go b/waku/v2/api/publish/message_sender.go index 62dcb4af7..4bf597c1e 100644 --- a/waku/v2/api/publish/message_sender.go +++ b/waku/v2/api/publish/message_sender.go @@ -16,8 +16,8 @@ import ( ) const DefaultPeersToPublishForLightpush = 2 -const DefaultPublishingLimiterRate = rate.Limit(2) -const DefaultPublishingLimitBurst = 4 +const DefaultPublishingLimiterRate = rate.Limit(5) +const DefaultPublishingLimitBurst = 10 type PublishMethod int diff --git a/waku/v2/protocol/filter/options.go b/waku/v2/protocol/filter/options.go index bde105e47..f5aa28e09 100644 --- a/waku/v2/protocol/filter/options.go +++ b/waku/v2/protocol/filter/options.go @@ -83,7 +83,7 @@ func WithLightNodeRateLimiter(r rate.Limit, b int) LightNodeOption { func DefaultLightNodeOptions() []LightNodeOption { return []LightNodeOption{ - WithLightNodeRateLimiter(1, 1), + WithLightNodeRateLimiter(15, 20), } }