Skip to content

Commit

Permalink
Merge pull request #4862 from butonic/backport/4678
Browse files Browse the repository at this point in the history
fix(store): encode nats-js-kv keys
  • Loading branch information
2403905 authored Sep 23, 2024
2 parents efa8764 + b97dea7 commit 30b3bf5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/fix-nats-encoding.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Fix nats encoding

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

https://github.com/cs3org/reva/pull/4862
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 30b3bf5

Please sign in to comment.