made net_client private

This commit is contained in:
Jedrzej Stuczynski
2020-02-05 12:30:39 +00:00
parent 0ab7e4ddd9
commit 82bcb3f79f
+6 -6
View File
@@ -5,12 +5,6 @@ use directory_client::DirectoryClient;
use log::{debug, error};
use std::time::Duration;
pub struct Notifier {
pub net_client: directory_client::Client,
presence: MixNodePresence,
sending_delay: Duration,
}
pub struct NotifierConfig {
directory_server: String,
announce_host: String,
@@ -37,6 +31,12 @@ impl NotifierConfig {
}
}
pub struct Notifier {
net_client: directory_client::Client,
presence: MixNodePresence,
sending_delay: Duration,
}
impl Notifier {
pub fn new(config: NotifierConfig) -> Notifier {
let directory_client_cfg = directory_client::Config {