Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extra checks for completed messages #71

Merged
merged 2 commits into from
Mar 26, 2024
Merged

Conversation

boojamya
Copy link
Member

@boojamya boojamya commented Mar 26, 2024

Because of the recent flush, the same message can be dequeued from the processing queue more than once.

Ref:
https://github.com/strangelove-ventures/noble-cctp-relayer/blob/d74f65466005f7a0a3292a700b9315641e017f33/cmd/process.go#L144

The PR adds extra checks to see if another worker had already completed the broadcast during each retry.

Also, this cleans up some rogue print statements.

@Reecepbcups Reecepbcups merged commit 642daeb into main Mar 26, 2024
3 checks passed
@Reecepbcups Reecepbcups deleted the dan/cleanupPrint branch March 26, 2024 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants