bulds
This commit is contained in:
parent
eb3e5fd204
commit
a016f6e82e
|
@ -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<()> {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue