Skip to content

Commit

Permalink
fix returning output vs status
Browse files Browse the repository at this point in the history
  • Loading branch information
aspect committed Jul 22, 2024
1 parent a96fca6 commit aa519c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/imports.rs
Original file line number Diff line number Diff line change
@@ -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::*;
Expand Down
2 changes: 1 addition & 1 deletion src/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit aa519c5

Please sign in to comment.