fix(indexer): correct rate limiter replenish to true RPS (#355) #852
No reviewers
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-dex-terraclassic!852
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "local1/355-impl-rate-limiter-rps"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes #355 —
tower_governorper_second(rps)replenishes one token everyrpsseconds, notrpstokens per second. Effective limits were burst-only then ~1 req / RPS seconds.Changes
replenish_period_for_rps:Duration::from_nanos(1_000_000_000 / rps)security.rsRATE_LIMIT_RPS=0andRATE_LIMIT_LCD_HEAVY_RPS=0to fully disableVerification checklist
/tradedoes not 429 under normal single-user usecargo test --test security rate_limitpasseschanged the description
changed the description
mentioned in commit
0ee39be2a8mentioned in issue #355