Skip to content

Commit

Permalink
fix: have better defaults for send/recv rate-limits to accomodate sta…
Browse files Browse the repository at this point in the history
…tus use-case
  • Loading branch information
chaitanyaprem committed Dec 16, 2024
1 parent ffed059 commit 122e9de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions waku/v2/api/publish/message_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion waku/v2/protocol/filter/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func WithLightNodeRateLimiter(r rate.Limit, b int) LightNodeOption {

func DefaultLightNodeOptions() []LightNodeOption {
return []LightNodeOption{
WithLightNodeRateLimiter(1, 1),
WithLightNodeRateLimiter(15, 20),
}
}

Expand Down

0 comments on commit 122e9de

Please sign in to comment.