Closed dwasse closed 1 month ago
The pull request modifies the HasSufficientGas
method in the inventoryManagerImpl
struct and updates the commitPendingBalance
and handleNotEnoughInventory
methods in the QuoteRequestHandler
class. The key change is the addition of the SkipDBCache()
argument to the GetCommittableBalance
method calls, which alters how gas and committable balances are retrieved, bypassing the database cache. The overall control flow and error handling remain unchanged, and various comments and TODOs have been added for future improvements.
File Path | Change Summary |
---|---|
services/rfq/relayer/inventory/manager.go |
Updated HasSufficientGas method to include SkipDBCache() in GetCommittableBalance call. |
services/rfq/relayer/service/handlers.go |
Modified commitPendingBalance and handleNotEnoughInventory methods to include SkipDBCache() in GetCommittableBalance calls. |
inventoryManagerImpl
struct in manager.go
, specifically the introduction of the inFlightQuoteManager
, which is relevant to the changes made to the HasSufficientGas
method that also involve balance retrieval logic.go
, needs-go-generate-services/rfq
, size/m
🐇 In the fields where bunnies roam,
We skip the cache, we call it home.
With gas and balance, all in line,
Our code now dances, oh so fine!
So hop along, let changes flow,
In the land of code, we make it glow! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Attention: Patch coverage is 33.33333%
with 2 lines
in your changes missing coverage. Please review.
Project coverage is 33.22599%. Comparing base (
42c0079
) to head (857d137
). Report is 13 commits behind head on master.
Files with missing lines | Patch % | Lines |
---|---|---|
services/rfq/relayer/service/handlers.go | 0.00000% | 2 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Latest commit: |
857d137
|
Status: | ✅ Deploy successful! |
Preview URL: | https://4b1f7807.sanguine-fe.pages.dev |
Branch Preview URL: | https://fix-skip-cache.sanguine-fe.pages.dev |
Summary by CodeRabbit
New Features
Bug Fixes