Skip to content

Commit

Permalink
Change configuration's meta_addr format
Browse files Browse the repository at this point in the history
  • Loading branch information
gaodunqiao committed Jan 19, 2018
1 parent 0841e88 commit 9ae09c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conf/zgw-example.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# zeppelin-gateway config file

zp_meta_addr: 127.0.0.1:9221/127.0.0.1:9222/127.0.0.1:9223
zp_meta_addr: 127.0.0.1:9221,127.0.0.1:9222,127.0.0.1:9223
zp_optimeout_ms: 5000
redis_ip_port: 127.0.0.1:19221
redis_passwd: passwd
Expand Down
2 changes: 1 addition & 1 deletion src/zgw_config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ int ZgwConfig::LoadConf() {
// Meta server
std::string zp_meta_addr;
b_conf->GetConfStr("zp_meta_addr", &zp_meta_addr);
slash::StringSplit(zp_meta_addr, '/', zp_meta_ip_ports);
slash::StringSplit(zp_meta_addr, ',', zp_meta_ip_ports);
b_conf->GetConfInt("zp_optimeout_ms", &zp_optimeout_ms);
b_conf->GetConfStr("redis_ip_port", &redis_ip_port);
b_conf->GetConfStr("redis_passwd", &redis_passwd);
Expand Down

0 comments on commit 9ae09c0

Please sign in to comment.