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 revision to kv operations #1182

Merged
merged 6 commits into from
Jan 3, 2024

Conversation

boba2fett
Copy link
Contributor

Similar to the nats.net.v2 client, an option to add the expected revision was added. A delete or purge will be rejected similar to the update function.

This is needed to make better use of the immediately consistent properties of the kv store.
This is a breaking change, as all references to current deletes or purges will have to be updated to include a None.

Copy link
Member

@Jarema Jarema left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

Some comments added.

async-nats/src/jetstream/kv/mod.rs Show resolved Hide resolved
@Jarema Jarema force-pushed the add-revision-to-kv-operations branch from ec08134 to fb6d9e2 Compare January 3, 2024 07:20
@Jarema Jarema force-pushed the add-revision-to-kv-operations branch from fb6d9e2 to e5d2a86 Compare January 3, 2024 12:52
Copy link
Member

@Jarema Jarema left a comment

Choose a reason for hiding this comment

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

Typo in doc :)

Other than that - looks good.

async-nats/src/jetstream/kv/mod.rs Outdated Show resolved Hide resolved
Co-authored-by: Tomasz Pietrek <melgaer@gmail.com>
Copy link
Member

@Jarema Jarema left a comment

Choose a reason for hiding this comment

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

LGTM!

Thank you for your contribution!

@Jarema Jarema merged commit 0424068 into nats-io:main Jan 3, 2024
11 checks passed
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.

2 participants