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

Stabilize state aggregate #723

Merged
merged 6 commits into from
Mar 7, 2023
Merged

Stabilize state aggregate #723

merged 6 commits into from
Mar 7, 2023

Conversation

syvb
Copy link
Member

@syvb syvb commented Mar 1, 2023

Closes #691.

@syvb syvb force-pushed the sv/state_agg-stable branch 4 times, most recently from 5f5dd75 to 6fee0cf Compare March 1, 2023 19:39
@syvb syvb marked this pull request as ready for review March 1, 2023 20:02
// binary search to find the first time at or after the start time
let slice = agg.combined_durations.as_slice();
let idx = match slice.binary_search_by(|tis| tis.start_time.cmp(&point)) {
Ok(idx) => idx,
Copy link
Contributor

Choose a reason for hiding this comment

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

There's no notion of an end time for a state_agg right? So this will simply return the last state for any time stamp past the last time seen?

extension/src/state_aggregate/accessors.rs Outdated Show resolved Hide resolved
extension/src/state_aggregate/accessors.rs Outdated Show resolved Hide resolved
extension/src/state_aggregate.rs Outdated Show resolved Hide resolved
@syvb syvb requested a review from WireBaron March 6, 2023 19:16
@syvb
Copy link
Member Author

syvb commented Mar 6, 2023

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 7, 2023

Build succeeded:

@bors bors bot merged commit ec79565 into main Mar 7, 2023
@bors bors bot deleted the sv/state_agg-stable branch March 7, 2023 00:10
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.

Stabilize timeline aggregate as the new state_aggregate
2 participants