mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-01-12 22:43:42 +08:00
Slightly less brokenness
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
This commit is contained in:
committed by
jferrant
parent
6be9343a15
commit
00006c62e8
@@ -549,8 +549,10 @@ impl BlockMinerThread {
|
||||
#[cfg(test)]
|
||||
{
|
||||
if TEST_BROADCAST_STALL.lock().unwrap().is_some() {
|
||||
warn!("Broadcasting is stalled due to testing directive.");
|
||||
while *TEST_BROADCAST_STALL.lock().unwrap() != Some(true) {
|
||||
warn!("Broadcasting is stalled due to testing directive.";
|
||||
"block_id" => %block.block_id()
|
||||
);
|
||||
while *TEST_BROADCAST_STALL.lock().unwrap() == Some(true) {
|
||||
std::thread::sleep(std::time::Duration::from_millis(10));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user