mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-09-11 03:47:57 +08:00
refactor(core): select discovery backend from configured type
This commit is contained in:
parent
d9b973f44b
commit
48a2e27d40
5
.gitignore
vendored
5
.gitignore
vendored
@ -387,4 +387,7 @@ Sessionx.vim
|
||||
|
||||
# End of https://www.toptal.com/developers/gitignore/api/go,git,vim,tags,test,emacs,backup,jetbrains
|
||||
.idea
|
||||
dist/
|
||||
dist/
|
||||
|
||||
.omo
|
||||
.sisyphus
|
||||
@ -46,7 +46,7 @@ func NewDiscoveryRegister(discovery *config.Discovery, watchNames []string) (dis
|
||||
}
|
||||
switch discoveryType {
|
||||
case config.KUBERNETES:
|
||||
return kubernetes.NewConnManager(discovery.Kubernetes.Namespace, nil,
|
||||
return kubernetes.NewConnManager(discovery.Kubernetes.Namespace, watchNames,
|
||||
grpc.WithDefaultCallOptions(
|
||||
grpc.MaxCallSendMsgSize(1024*1024*20),
|
||||
),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user