diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-05-09 15:53:22 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-05-09 15:53:22 +0200 |
commit | a19ae25a7d20d338243e2fef5a1fd45437701c2a (patch) | |
tree | 9d40a4c7a5af1726a60371af435cb391b2bb3c06 /src/config.rs | |
parent | 643d6980e5c0f04928edf05219f735495e5589a5 (diff) | |
download | diplonat-a19ae25a7d20d338243e2fef5a1fd45437701c2a.tar.gz diplonat-a19ae25a7d20d338243e2fef5a1fd45437701c2a.zip |
Rewrite with modules, still in progress...
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 7 |
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); |