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: recon-over-http #168

Merged
merged 5 commits into from
Jan 11, 2024
Merged

feat: recon-over-http #168

merged 5 commits into from
Jan 11, 2024

Conversation

smrz2001
Copy link
Collaborator

@smrz2001 smrz2001 commented Nov 3, 2023

No description provided.

Copy link
Collaborator

@nathanielc nathanielc left a comment

Choose a reason for hiding this comment

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

Looks great, just two small changes to make the API a bit clearer. No need to re-review

recon/src/recon.rs Outdated Show resolved Hide resolved
recon/src/recon.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@nathanielc nathanielc left a comment

Choose a reason for hiding this comment

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

Added some comments, just some feedback on idiomatic Rust nothing significant. Feel free to merge once addressed

recon/src/recon.rs Outdated Show resolved Hide resolved
core/src/event_id.rs Outdated Show resolved Hide resolved
recon/src/recon.rs Outdated Show resolved Hide resolved
@@ -544,7 +545,7 @@ async fn response_is_synchronized() {
let response = a.process_messages(&response.messages).await.unwrap();
assert!(!response.is_synchronized);
let response = x.process_messages(&response.messages).await.unwrap();
assert!(!response.is_synchronized);
assert!(response.is_synchronized);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why did this test invert?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you update the test comments if this is expected?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The is_synchronized logic changed so that it can detect synchronization one round earlier. Now, we don't have to wait for a round where nothing is exchanged so detect that we're done. We're synchronized as soon as the ranges match.

@smrz2001 smrz2001 added this pull request to the merge queue Jan 11, 2024
Merged via the queue into main with commit 28d8dd3 Jan 11, 2024
4 checks passed
@smrz2001 smrz2001 deleted the feat/http-recon branch January 11, 2024 21:34
@smrz2001 smrz2001 mentioned this pull request Jan 23, 2024
@github-actions github-actions bot mentioned this pull request Jan 23, 2024
@github-actions github-actions bot mentioned this pull request Feb 6, 2024
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.

3 participants