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

Make coordinator more resilient #34

Merged
merged 5 commits into from
Oct 4, 2024
Merged

Make coordinator more resilient #34

merged 5 commits into from
Oct 4, 2024

Conversation

f321x
Copy link
Owner

@f321x f321x commented Sep 24, 2024

Addresses #11
If the coordinator crashes for any reason it now tries to close the old nostr client, wait 60 seconds and then creates a new nostr client (new connections & subscriptions) without losing the pending and ongoing contracts.
While this could maybe designed with more advanced timeout mechanisms this should be able to catch most problems (that happen rarely anyways) without adding too much complexity.

@f321x f321x added the enhancement New feature or request label Sep 24, 2024
@f321x f321x self-assigned this Sep 24, 2024
@f321x f321x requested a review from rodant September 24, 2024 13:50
coordinator/src/escrow_coordinator/mod.rs Outdated Show resolved Hide resolved
coordinator/src/main.rs Outdated Show resolved Hide resolved
@f321x f321x marked this pull request as draft September 26, 2024 11:39
@f321x f321x marked this pull request as ready for review October 3, 2024 21:53
@rodant rodant merged commit d426ceb into master Oct 4, 2024
@rodant rodant deleted the resilientcoordinator branch October 4, 2024 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants