Skip to content

Commit

Permalink
Load balancer wait for it
Browse files Browse the repository at this point in the history
  • Loading branch information
vertexclique committed Nov 3, 2019
1 parent 3e665b6 commit 5628389
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions bastion-executor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
//! NUMA-aware SMP based Fault-tolerant Executor
//!
// Executing asm in some places
#![feature(asm)]
// Allocator features
#![feature(allocator_api)]
#![feature(extern_types)]
Expand Down
8 changes: 0 additions & 8 deletions bastion-executor/src/load_balancer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,6 @@ impl LoadBalancer {
if let Ok(mut stats) = load_balancer::stats().try_write() {
stats.mean_level = m;
}

// General suspending is equal to cache line size in ERTS
// https://github.com/erlang/otp/blob/master/erts/emulator/beam/erl_process.c#L10887
// https://github.com/erlang/otp/blob/ea7d6c39f2179b2240d55df4a1ddd515b6d32832/erts/emulator/beam/erl_thr_progress.c#L237
// thread::sleep(SIXTY_MILLIS);
(0..64).for_each(|_| unsafe {
asm!("NOP");
})
}
})
.expect("load-balancer couldn't start");
Expand Down

0 comments on commit 5628389

Please sign in to comment.