Skip to content

Commit

Permalink
(maint) Update kv and object commands to use new jetstream api
Browse files Browse the repository at this point in the history
Here we update both the kv and object commands to no longer use the
deprecated nats.JetstreamContext and instead use jetstream.Jetstream.

We also fix some minor usability issues, like make the `revision` flag
required for the `update` action, improve the error message when
attempting to revert a key value in a bucket with history=1, and
perform the revert with an `update` action instead of a `put`.
  • Loading branch information
ploubser committed Oct 2, 2024
1 parent bb1a8f2 commit 5b5f13f
Show file tree
Hide file tree
Showing 4 changed files with 181 additions and 74 deletions.
Loading

0 comments on commit 5b5f13f

Please sign in to comment.