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: introduce a writeQueue for event tracking #124

Merged
merged 4 commits into from
May 27, 2024
Merged

Conversation

nicklasl
Copy link
Member

the write queue will consume one tracked event after the other and write them to disk and run the flush policies

the write queue will consume one tracked event after the other and write them to disk and run the flush policies
try self.storage.writeEvent(event: event)
} catch {
writeReqChannel
.receive(on: self.writeQueue)
Copy link
Member Author

Choose a reason for hiding this comment

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

this is new.
also, supporting to pass the write queue for testing purposes.

@nicklasl nicklasl changed the title feat: Manual flush fix feat: introduce a writeQueue for event tracking May 24, 2024
@nicklasl nicklasl merged commit a49a393 into main May 27, 2024
3 checks passed
@nicklasl nicklasl deleted the manual-flush-fix branch May 27, 2024 08:32
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.

None yet

3 participants