Skip to content

Commit

Permalink
fix(store): encode nats-js-kv keys
Browse files Browse the repository at this point in the history
Signed-off-by: jkoberg <[email protected]>
  • Loading branch information
kobergj committed May 10, 2024
1 parent 4556904 commit df0ba6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions changelog/unreleased/fix-nats-encoding.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: Fix nats encoding

Encode nats-js-kv keys. This got lost by a dependency bump.

https://github.com/cs3org/reva/pull/4678
1 change: 1 addition & 0 deletions pkg/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ func Create(opts ...microstore.Option) microstore.Store {
return natsjskv.NewStore(
append(opts,
natsjskv.NatsOptions(natsOptions), // always pass in properly initialized default nats options
natsjskv.EncodeKeys(),
natsjskv.DefaultTTL(ttl))...,
)
case TypeMemory, "mem", "": // allow existing short form and use as default
Expand Down

0 comments on commit df0ba6d

Please sign in to comment.