Skip to content

Commit

Permalink
Fix leaked printlns
Browse files Browse the repository at this point in the history
  • Loading branch information
pool2win committed Oct 10, 2024
1 parent 9380da9 commit 176a920
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/node/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ impl Commands for Node {
/// Command event loop receives commands from RPC
async fn start_command_loop(&self, mut command_rx: mpsc::Receiver<String>) {
while let Some(msg) = command_rx.recv().await {
println!("Received {:?}", msg);
match msg.as_str() {
"shutdown" => {
println!("Shutting down....");
log::info!("Shutting down....");
return;
}
_ => {}
Expand Down

0 comments on commit 176a920

Please sign in to comment.