Skip to content

Commit

Permalink
Improve nats-js store (#123)
Browse files Browse the repository at this point in the history
* avoid concurrent map writes

Signed-off-by: jkoberg <jkoberg@owncloud.com>

* use a sync.Map for storing buckets

Signed-off-by: jkoberg <jkoberg@owncloud.com>

* dont panic when limit is larger then actual slice

Signed-off-by: jkoberg <jkoberg@owncloud.com>

* strip table prefix in when listing in natsjs

Signed-off-by: jkoberg <jkoberg@owncloud.com>

* use cornelk/hashmap instead sync.Map

Signed-off-by: jkoberg <jkoberg@owncloud.com>

---------

Signed-off-by: jkoberg <jkoberg@owncloud.com>
  • Loading branch information
kobergj authored Nov 29, 2023
1 parent 6c2dd05 commit d72facc
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 720 deletions.
7 changes: 5 additions & 2 deletions v4/store/nats-js/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
module github.com/go-micro/plugins/v4/store/nats-js

go 1.17
go 1.21

require github.com/nats-io/nats-server/v2 v2.8.4
require (
github.com/cornelk/hashmap v1.0.8
github.com/nats-io/nats-server/v2 v2.8.4
)

require (
github.com/Microsoft/go-winio v0.5.2 // indirect
Expand Down
Loading

0 comments on commit d72facc

Please sign in to comment.