mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-25 13:38:19 -05:00
fix name of nats-js-kv registry
Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
+1
-1
@@ -1950,7 +1950,7 @@ def ocisServer(storage, accounts_hash_difficulty = 4, volumes = [], depends_on =
|
||||
"FRONTEND_SEARCH_MIN_LENGTH": "2",
|
||||
"OCIS_ASYNC_UPLOADS": True,
|
||||
"OCIS_EVENTS_ENABLE_TLS": False,
|
||||
"MICRO_REGISTRY": "natsjs",
|
||||
"MICRO_REGISTRY": "nats-js-kv",
|
||||
"MICRO_REGISTRY_ADDRESS": "127.0.0.1:9233",
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Fix wrong naming in nats-js-kv registry
|
||||
|
||||
Registers the registry under the correct name
|
||||
|
||||
https://github.com/owncloud/ocis/pull/8140
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
"go-micro.dev/v4/util/cmd"
|
||||
)
|
||||
|
||||
var _registryName = "natsjs"
|
||||
var _registryName = "nats-js-kv"
|
||||
|
||||
func init() {
|
||||
cmd.DefaultRegistries[_registryName] = NewRegistry
|
||||
|
||||
@@ -66,13 +66,14 @@ func GetRegistry(opts ...Option) mRegistry.Registry {
|
||||
mRegistry.Addrs(cfg.Addresses...),
|
||||
natsjsregistry.Authenticate(cfg.Username, cfg.Password),
|
||||
)
|
||||
case "kubernetes":
|
||||
_reg = kubernetesr.NewRegistry(
|
||||
mRegistry.Addrs(cfg.Addresses...),
|
||||
)
|
||||
case "memory":
|
||||
_reg = memr.NewRegistry()
|
||||
cfg.DisableCache = true // no cache needed for in-memory registry
|
||||
case "kubernetes":
|
||||
fmt.Println("Attention: kubernetes registry is deprecated, use nats-js-kv instead")
|
||||
_reg = kubernetesr.NewRegistry(
|
||||
mRegistry.Addrs(cfg.Addresses...),
|
||||
)
|
||||
case "nats":
|
||||
fmt.Println("Attention: nats registry is deprecated, use nats-js-kv instead")
|
||||
_reg = natsr.NewRegistry(
|
||||
|
||||
Reference in New Issue
Block a user