Closed trajan0x closed 2 weeks ago
The recent changes enhance error handling in the Run
and Start
methods of the CCTPRelayer
and Relayer
structs, respectively. Specifically, the updates ensure that these methods check if the transaction submitter has already started before attempting to start it, preventing redundant operations and managing errors based on the current state of the submitter.
File Path | Change Summary |
---|---|
services/cctp-relayer/.../relayer.go |
Added error handling in Run method to check if the submitter has already started. |
services/rfq/relayer/.../relayer.go |
Enhanced Start method to verify if the submitter is already active and manage errors accordingly. |
In code's vast and intricate maze,
We now enhance the relayer's phase.
Check once, start once, avoid the repeat,
Ensuring operations are ever neat.
With thoughtful handling, errors dispense,
Our relayers now run with common sense!
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 25.00000%
with 9 lines
in your changes missing coverage. Please review.
Project coverage is 25.65620%. Comparing base (
2d8fd40
) to head (307513e
).
Files | Patch % | Lines |
---|---|---|
services/rfq/relayer/service/relayer.go | 0.00000% | 6 Missing :warning: |
services/cctp-relayer/relayer/relayer.go | 50.00000% | 2 Missing and 1 partial :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Latest commit: |
307513e
|
Status: | ✅ Deploy successful! |
Preview URL: | https://006c24c1.sanguine-fe.pages.dev |
Branch Preview URL: | https://fix-submitter-bug.sanguine-fe.pages.dev |
Description
fixes submitter race
Summary by CodeRabbit