-
Notifications
You must be signed in to change notification settings - Fork 59
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
Restartable storage deals #270
Conversation
de24e05
to
2744c0d
Compare
Codecov Report
@@ Coverage Diff @@
## master #270 +/- ##
==========================================
- Coverage 65.29% 63.67% -1.61%
==========================================
Files 40 40
Lines 2359 2400 +41
==========================================
- Hits 1540 1528 -12
- Misses 695 749 +54
+ Partials 124 123 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically good but I would like to add ConnectionClosed checking into the restart and rename the Run method for Client & add an error so we're not supressing it.
The other comment is non-blocking
WIP Remove test for ensuring that state entry fn gets executed. This is already tested in go-statemachine. WIP WIP2 # Conflicts: # storagemarket/impl/provider.go # storagemarket/integration_test.go
3b22de6
to
2b448d8
Compare
Summary
Use the finality states in to declare terminal states for client and provider deals. On starting up, send either a
ProviderEventRestart
orClientEventRestart
event to each deal that isn't in a terminal state.Resolves #79, #78
Note
This does not make every deal restartable at any point. It just adds the plumbing so that the restart event is sent, and will work in some cases.
Before this is ready to merge
go.mod
to point to new go-statemachine