Skip to content

Commit

Permalink
Remove unused try_send function
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian May committed Aug 28, 2024
1 parent 7b8372e commit bb2f103
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/output/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,6 @@ impl MultiOutput {
}
}

pub fn try_send(&self, msg: Message) {
let msg = Arc::new(msg);
for tx in &self.tx {
tx.try_send(msg.clone()).unwrap_or_else(|err| {
print!("Cannot send message to output pipe: {err}");
});
}
}

pub async fn send_log(&self, entry: LogEntry) {
self.send(Message::Log(entry)).await;
}
Expand Down

0 comments on commit bb2f103

Please sign in to comment.