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

feat: Update event types and builder APIs to prevent building events that dont align with the protocol spec #357

Merged
merged 26 commits into from
May 17, 2024

Conversation

stbrody
Copy link
Collaborator

@stbrody stbrody commented May 17, 2024

No description provided.

@stbrody stbrody self-assigned this May 17, 2024
@stbrody stbrody temporarily deployed to github-tests-2024 May 17, 2024 15:23 — with GitHub Actions Inactive
@stbrody stbrody temporarily deployed to github-tests-2024 May 17, 2024 15:52 — with GitHub Actions Inactive
@stbrody stbrody marked this pull request as ready for review May 17, 2024 15:57
// 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.
Copy link
Collaborator Author

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.

Copy link
Collaborator

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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

event/src/unvalidated/builder.rs Show resolved Hide resolved
@stbrody stbrody temporarily deployed to github-tests-2024 May 17, 2024 16:05 — with GitHub Actions Inactive
@stbrody stbrody added this pull request to the merge queue May 17, 2024
Merged via the queue into main with commit 50cc8ba May 17, 2024
5 checks passed
@stbrody stbrody deleted the add-builder branch May 17, 2024 16:39
@smrz2001 smrz2001 mentioned this pull request May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants