Unverified Commit 7061c53d authored by Roman Zeyde's avatar Roman Zeyde
Browse files

Improve logging when closing RPC server

parent e446693c
......@@ -551,10 +551,11 @@ impl RPC {
info!("[{}] disconnected peer", addr);
}));
}
trace!("closing RPC connections");
trace!("closing {} RPC connections", senders.lock().unwrap().len());
for sender in senders.lock().unwrap().iter() {
let _ = sender.send(Message::Done);
}
trace!("waiting for {} RPC handling threads", children.len());
for child in children {
let _ = child.join();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment