made net_client private
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user