Skip to content

Conversation

@dentiny
Copy link
Contributor

@dentiny dentiny commented May 12, 2025

Which issue does this PR close?

This PR expose public construction function for puffin blob, as discussed in the linked issue.
The main motivation is: puffin blob is supposed to hold any type, so should be public-ly accessible by developers.

Are these changes tested?

This PR is a no-op change, I verified compilation passes through on my end.

@dentiny dentiny changed the title Expose puffin blob constructor chore: Expose puffin blob constructor May 13, 2025
@dentiny dentiny requested a review from liurenjie1024 May 13, 2025 18:25
self
}

pub fn build(self) -> Blob {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is incorrect. For fields that are required, we should need to check if they are set. You can use TypedBuilder to help to ensure safety.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

got it, thanks for the lesson!

@dentiny dentiny requested a review from liurenjie1024 May 14, 2025 03:51
Copy link
Contributor

@liurenjie1024 liurenjie1024 left a comment

Choose a reason for hiding this comment

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

Thanks @dentiny for this pr, LGTM!

@liurenjie1024 liurenjie1024 merged commit 111d0f3 into apache:main May 14, 2025
17 checks passed
@dentiny
Copy link
Contributor Author

dentiny commented May 14, 2025

Thanks @dentiny for this pr, LGTM!

Thank you for the great help!

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.

Feature request: make blob struct public

2 participants