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

RUST-1104 sync wrapper for the change stream API #566

Merged
merged 6 commits into from
Feb 2, 2022

Conversation

abr-egn
Copy link
Contributor

@abr-egn abr-egn commented Jan 27, 2022

RUST-1104

This adds the sync wrappers for the [Session]ChangeStream types and the watch[_with_session] methods.

/// If the pipeline alters the structure of the returned events, the parsed type will need to be
/// changed via [`ChangeStream::with_type`].
#[allow(unused)]
pub(crate) fn watch(
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are these pub(crate)/unused?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm restricting the in-development async API to pub(crate), so it seems like the sync API should be the same. Making them fully pub (RUST-1106) will be the last step before release.

@abr-egn abr-egn merged commit 7da9195 into mongodb:master Feb 2, 2022
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