changing ip addr type (#1950)

* changing ip addr type

* fixing parse fn and improving proxy fn

* Update net_controller.rs

* remove extra fn call
This commit is contained in:
Stephen Chavez
2022-11-16 23:00:28 +00:00
committed by Aiden McClelland
parent 8b6eac3c1c
commit 373e11495d
9 changed files with 30 additions and 108 deletions

View File

@@ -15,7 +15,6 @@ use crate::Error;
#[derive(Debug, Default, Deserialize)]
#[serde(rename_all = "kebab-case")]
pub struct DiagnosticContextConfig {
pub ethernet_interface: String,
pub datadir: Option<PathBuf>,
}
impl DiagnosticContextConfig {
@@ -44,7 +43,6 @@ impl DiagnosticContextConfig {
}
pub struct DiagnosticContextSeed {
pub ethernet_interface: String,
pub datadir: PathBuf,
pub shutdown: Sender<Option<Shutdown>>,
pub error: Arc<RpcError>,
@@ -68,7 +66,6 @@ impl DiagnosticContext {
let (shutdown, _) = tokio::sync::broadcast::channel(1);
Ok(Self(Arc::new(DiagnosticContextSeed {
ethernet_interface: cfg.ethernet_interface.clone(),
datadir: cfg.datadir().to_owned(),
shutdown,
disk_guid,