aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs
index 950f4fe..bbc1b33 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -38,7 +38,12 @@ pub fn load_env() -> Result<DiplonatConfig, String> {
return Err(format!("Expiration time (currently: {}s) must be twice bigger than refresh time (currently: {}s)", expiration_time, refresh_time))
}
- let config = DiplonatConfig { private_ip: private_ip, refresh_time: refresh_time, expiration_time: expiration_time, consul_node_name: consul_node_name };
+ let config = DiplonatConfig {
+ private_ip: private_ip,
+ refresh_time: refresh_time,
+ expiration_time: expiration_time,
+ consul_node_name: consul_node_name
+ };
info!("Consul node name: {}", config.consul_node_name);
info!("Private IP address: {}", config.private_ip);
info!("Refresh time: {} seconds", config.refresh_time);