aboutsummaryrefslogtreecommitdiff
path: root/src/consul.rs
diff options
context:
space:
mode:
authoradrien <adrien@luxeylab.net>2021-08-25 17:20:31 +0200
committeradrien <adrien@luxeylab.net>2021-08-26 16:05:39 +0200
commit76fe63791baea5577bde3f83243f85ba781f46fe (patch)
tree1f7ffed5671f30cbd13093db02d7462183bf1952 /src/consul.rs
parentfa25c54e47decf9f323ba0c614f4d9de106626d5 (diff)
downloaddiplonat-76fe63791baea5577bde3f83243f85ba781f46fe.tar.gz
diplonat-76fe63791baea5577bde3f83243f85ba781f46fe.zip
Rewrote the configuration options to make Diplonat modular: IGD and Firewall modules will only be enabled if correponding `DIPLONAT_*_ENABLE` is set. (Breaking changes!)
Also rearranged imports throughout the project, because I couldn't resist, sorry.
Diffstat (limited to 'src/consul.rs')
-rw-r--r--src/consul.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/consul.rs b/src/consul.rs
index 1bb30aa..9a91782 100644
--- a/src/consul.rs
+++ b/src/consul.rs
@@ -1,6 +1,7 @@
-use serde::{Serialize, Deserialize};
use std::collections::HashMap;
+
use anyhow::{Result, anyhow};
+use serde::{Serialize, Deserialize};
#[derive(Serialize, Deserialize, Debug)]
pub struct ServiceEntry {