diff --git a/src/imports.rs b/src/imports.rs index f36d105..4ed319b 100644 --- a/src/imports.rs +++ b/src/imports.rs @@ -1,5 +1,5 @@ pub use crate::args::Args; -pub use crate::connection::{Connection, Status}; +pub use crate::connection::{Connection, Output, Status}; pub use crate::error::Error; pub use crate::group::*; pub use crate::log::*; diff --git a/src/monitor.rs b/src/monitor.rs index 2c8f070..b658bee 100644 --- a/src/monitor.rs +++ b/src/monitor.rs @@ -216,7 +216,7 @@ impl Monitor { if !connections.is_empty() { let node = select_with_weighted_rng(connections); - serde_json::to_string(&Status::from(node)).ok() + serde_json::to_string(&Output::from(node)).ok() } else { None }