This commit is contained in:
Anatoly Yakovenko 2018-07-16 22:25:36 -07:00 committed by Greg Fitzgerald
parent eb3e5fd204
commit a016f6e82e
2 changed files with 2 additions and 2 deletions

View File

@ -319,7 +319,7 @@ impl FullNode {
}
//used for notifying many nodes in parallel to exit
pub fn notify_exit(self) {
pub fn notify_exit(&self) {
self.exit.store(true, Ordering::Relaxed);
}
pub fn close(self) -> Result<()> {

View File

@ -464,7 +464,7 @@ fn test_multi_node_dynamic_network() {
}
}
assert_eq!(consecutive_success, 10);
for (_, node) in validators {
for (_, node) in &validators {
node.notify_exit();
}
server.notify_exit();