Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Summary Addressing PR #104 comments. # Details 1. Replaced `lru-cache` crate with `moka` to improve inserting data into the cache (now using segmentation blocking). 2. Sending `/swap` and `/approve-transaction` requests in parallel to improve latency. 3. Moved preparation and sending of the API requests to separate function which is now instrumented using one tracing span for both API calls. 4. Added test which checks if cache is used (evaluating two swaps of the same tokens should result in only one `/approve-transaction` request). # How to test Existing tests and newly added test.
- Loading branch information