Allow to specify multiple etcd addresses

This commit is contained in:
Vitaliy Filippov
2020-05-25 16:30:05 +03:00
parent 256a7f2667
commit fa98be6bc0
6 changed files with 70 additions and 52 deletions
+2 -2
View File
@@ -32,8 +32,8 @@ struct json_kv_t
struct etcd_state_client_t
{
// FIXME Allow multiple etcd addresses and select random address
std::string etcd_address, etcd_prefix, etcd_api_path;
std::vector<std::string> etcd_addresses;
std::string etcd_prefix;
int log_level = 0;
timerfd_manager_t *tfd = NULL;