-
Notifications
You must be signed in to change notification settings - Fork 43
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
Handle v2 error generic #473
Conversation
0be8384
to
486ccfe
Compare
Pull Request Test Coverage Report for Build 12739793767Details
💛 - Coveralls |
486ccfe
to
84572ba
Compare
This allows us to share common functions with every state in preparation to handle errors with data from the SessionContext.
Recoverable errors can be shared with the Sender rather than that Receiver going offline.
This works. However, after updating, I realize that in the implementation only the |
I'm not sure if you going to revert your generic work in 3534835 based on this comment. This work would potentially reduce the code footprint in multiparty things. Especially if we make sender context an associated type. |
Yes @0xBEEFCAF3, I made a more minimal implementation of this idea in #474. Which side of the fence would "potentially reduce the code footprint in multiplarty things," and how? Could you explain what you mean about making sender context an associated type? Or do you mean |
The generic part of this doesn't even come into play with the implementation, so I'm going to close this for now. If it turns out that making a Receiver accept an associated |
As I was working on the multiparty state machine I noticed that its essentially the same as the v2 reciever state machine (so far... I havent worked on any real validation so it may be the case that there needs to be additional / fewer states). The only real difference is the SessionContext type on the v2 reciever state structs (which needs to be a list of sender session contexts) |
Make the Receiver state machine generic so that it the error handling function can always provide context to an error
Extract JSON OHTTP request to be returned to the directory
This is a Draft because I'm not sure which design is going to make the most sense yet. Sharing my exploration of way to close #468