dfinity / exchange-rate-canister

The exchange rate canister (XRC) makes use of the HTTP requests feature to provide exchange rates as a service to the IC.
Apache License 2.0
37 stars 10 forks source link

Use a guard for the rate limit counter instead of an `increment` and `decrement` function #130

Closed dfinity-ryancroote closed 1 year ago

dfinity-ryancroote commented 1 year ago

This PR addresses a possible bug if a panic occurs during the future's execution when calling with_request_counter. It removes the increment and decrement functions in place of a guard.