mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-06 02:42:53 +08:00
Merge pull request #2118 from SkyYang/fix_2116
[skip ci](shards): fix issue #2116
This commit is contained in:
commit
7e771c5356
@ -29,7 +29,7 @@ class StaticDiscovery(object):
|
||||
|
||||
def __init__(self, config, readonly_topo, **kwargs):
|
||||
self.readonly_topo = readonly_topo
|
||||
hosts = env.list('DISCOVERY_STATIC_HOSTS', [])
|
||||
hosts = map(str.strip, env.list('DISCOVERY_STATIC_HOSTS', []))
|
||||
self.port = env.int('DISCOVERY_STATIC_PORT', 19530)
|
||||
self.hosts = [resolve_address(host, self.port) for host in hosts]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user