-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: Update event types and builder APIs to prevent building events that dont align with the protocol spec #357
Conversation
…e rust js-ceramic client" This reverts commit cb53168.
// Use self.len() here when we have cid@0.10 | ||
let buf = Vec::new(); | ||
let mut writer = std::io::BufWriter::new(buf); | ||
self.write(&mut writer)?; | ||
Ok(writer.into_inner()?) | ||
// safe to unwrap because self.write should never fail. |
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.
@nathanielc let me know if this is what you had in mind or if there's more I should do to handle this error.
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.
LGTM
// Use self.len() here when we have cid@0.10 | ||
let buf = Vec::new(); | ||
let mut writer = std::io::BufWriter::new(buf); | ||
self.write(&mut writer)?; | ||
Ok(writer.into_inner()?) | ||
// safe to unwrap because self.write should never fail. |
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.
LGTM
No description provided.