Skip to content

Commit

Permalink
fix: per second
Browse files Browse the repository at this point in the history
  • Loading branch information
istae committed Sep 5, 2024
1 parent 683e9d3 commit 87b8c59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/pullsync/pullsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ const (
DefaultMaxPage uint64 = 250
pageTimeout = time.Second
makeOfferTimeout = 15 * time.Minute
handleMaxChunksPerSecond = 50
handleRequestsLimitRate = time.Second / handleMaxChunksPerSecond // handle max 50 chunks per second per peer (maxPage chunks per 5 second)
handleMaxChunksPerSecond = 100
handleRequestsLimitRate = time.Second / handleMaxChunksPerSecond // handle max 100 chunks per second per peer (maxPage chunks per 5 second)
)

// Interface is the PullSync interface.
Expand Down

0 comments on commit 87b8c59

Please sign in to comment.