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

Add Now() method to ProjectionCompactScope. #143

Merged
merged 1 commit into from
Feb 18, 2021
Merged

Conversation

jmalloc
Copy link
Member

@jmalloc jmalloc commented Feb 8, 2021

What change does this introduce?

This PR introduces a Now() method to the ProjectionCompactScope interface.

Why make this change?

This allows compaction logic to expire old data even under testkit and/or its memory engine where the engine's notion of time is not necessarily the real wall clock time.

Is there anything you are unsure about?

We are unsure if this method may be needed on other scopes as well, but have opted only to implement it here for now as we have a concrete use case for compacting projections.

What issues does this relate to?

Fixes #141

@jmalloc
Copy link
Member Author

jmalloc commented Feb 18, 2021

Just pushed a slight rewording.

@jmalloc jmalloc merged commit 4e6780b into main Feb 18, 2021
@jmalloc jmalloc deleted the 141-compact-scope-now branch December 17, 2021 07:08
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.

Consider adding Now() method to scope interfaces.
3 participants