Skip to content

Commit

Permalink
Merge d36d898 into sapling-pr-archive-shadaj
Browse files Browse the repository at this point in the history
  • Loading branch information
shadaj authored Dec 15, 2023
2 parents 1016516 + d36d898 commit 58398b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions hydroflow/examples/kvs_bench/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![feature(core_intrinsics)]

mod buffer_pool;
mod protocol;
mod server;
Expand Down
2 changes: 1 addition & 1 deletion hydroflow/examples/kvs_bench/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ pub fn run_server<RX>(
KvsRequest::Put {key, value} => {
throughput_internal += 1;
const GATE: usize = 2 * 1024;
if std::intrinsics::unlikely(throughput_internal % GATE == 0) {
if throughput_internal % GATE == 0 {
throughput.fetch_add(GATE, Ordering::SeqCst);
}
let marker = create_unique_id(server_id as u128, context.current_tick(), e as u128);
Expand Down

0 comments on commit 58398b5

Please sign in to comment.