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

ref: abstract away protobuf from snapshot #84

Merged
merged 1 commit into from
Apr 11, 2024
Merged

Conversation

zeapoz
Copy link
Member

@zeapoz zeapoz commented Apr 10, 2024

Introduces a new trait, Proto, that defines methods for converting between native structs and ones generated by protobuf, and ones for encoding/decoding those structs into/from gzipped protobuf files.

Notably, SnapshotStorageLogsChunk and SnapshotFactoryDependencies leverage these methods to simplify the snapshot export/import code further and avoid intermingling structs from protobuf::* with types::*.

@zeapoz zeapoz requested a review from vbar April 10, 2024 16:42
@zeapoz zeapoz self-assigned this Apr 10, 2024
Introduces a new trait, `Proto`, that defines methods for converting
between native structs and ones generated by protobuf, and ones for
encoding/decoding those structs into/from gzipped protobuf files.
@zeapoz zeapoz merged commit dc697b0 into main Apr 11, 2024
4 checks passed
@zeapoz zeapoz deleted the ref/protobuf-abstractions branch April 11, 2024 08:07
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.

2 participants