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

Refactor IR Zstd writer into an interface with separate implementations for disk and memory buffering. #7

Merged
merged 13 commits into from
Aug 16, 2024

Conversation

davemarco
Copy link
Contributor

Description

Prior to this PR, there was one writer struct that handled writing logs to disk and memory. The methods for this struct had many conditionals to handle different functionality for disk and memory. This PR separates the writer into two separate writers removing numerous conditionals. The two new structs are unified under a single go interface.

Validation performed

Tested basic execution, appeared to function correctly

@davemarco davemarco requested a review from davidlion August 13, 2024 19:20
internal/irzstd/writer.go Outdated Show resolved Hide resolved
@davemarco davemarco requested a review from davidlion August 15, 2024 21:42
@davidlion davidlion changed the title Refactor event writer into separate event writers for disk and memory. Refactor IR Zstd writer into an interface with separate implementations for disk and memory buffering. Aug 16, 2024
@davidlion davidlion merged commit e258176 into y-scope:main Aug 16, 2024
2 checks passed
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