Skip to content

Commit

Permalink
Update default request interval to the updated 5 rps
Browse files Browse the repository at this point in the history
  • Loading branch information
NourElRashidy committed Dec 3, 2024
1 parent 07b1d6c commit 93ab907
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/services/ocr2/plugins/ccip/tokendata/lbtc/lbtc.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ const (
maxCoolDownDuration = 10 * time.Minute

// defaultRequestInterval defines the rate in requests per second that the attestation API can be called.
// this is set according to the APIs recommended 1 request per second rate limit.
defaultRequestInterval = 1000 * time.Millisecond
// this is set according to the APIs recommended 5 requests per second rate limit.
defaultRequestInterval = 200 * time.Millisecond

// APIIntervalRateLimitDisabled is a special value to disable the rate limiting.
APIIntervalRateLimitDisabled = -1
Expand Down

0 comments on commit 93ab907

Please sign in to comment.