[skip ci](shards): fix issue #2116

Signed-off-by: mooncity500's avatarSkyYang <mooncity.sky@163.com>
上级 777c36a0
......@@ -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]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册