-
Notifications
You must be signed in to change notification settings - Fork 58
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
Refactor Storage Provider to FSM Module #145
Conversation
2777641
to
4c3c9ef
Compare
Codecov Report
@@ Coverage Diff @@
## master #145 +/- ##
==========================================
+ Coverage 78.86% 82.07% +3.21%
==========================================
Files 27 33 +6
Lines 1225 1561 +336
==========================================
+ Hits 966 1281 +315
- Misses 189 200 +11
- Partials 70 80 +10
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.
Looks good.
One minor point: was a little confused by the use of the storagemarket.StorageDealProposalAccepted
state. On the provider, it's used to indicate sort of a "conditional acceptance", pending data transfer and validation and funds. On the Client it means something different (staged I think). Not a huge deal, but it could be confusing if you just looked at the existing deal states without looking through the FSM.
@ingar -- my next step is to finally do that conditional acceptance ticket (where the provider sends conditional accepts and the client creates the data transfer) |
refactor provider to use fsm
Extracts ConnManager, StoredAsk, reorgs files, and cleans up provider code down to one file
add unit tests for provider state fsm, utils, stored ask, connection manager
4c3c9ef
to
7e1773c
Compare
Goals
Convert the storage provider to the FSM module, add many unit tests, generally refactor to make code more manageable and legible
Implementation