Make it impossible to track outcomes for items that remain in the envelope #1888
Closed
5 tasks done
Labels
filler
Requires little effort to resolve. Ready to be picked up anytime.
Milestone
Before #1877, we reported rate limiting outcomes for replay items that remained in the envelope. This was possible because
track_outcome
uses the output ofEnvelopeLimiter::enforce
, but that function did not actually remove replays from the envelope:relay/relay-server/src/utils/rate_limits.rs
Lines 408 to 410 in 82af392
Not sure what's the exact solution here, but generally speaking, any function that creates an outcome should consume the item that has been dropped.
Tasks
The text was updated successfully, but these errors were encountered: