Skip to content

Commit

Permalink
Removing affinity code.
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitkulshreshtha committed Dec 6, 2024
1 parent 90320b4 commit 988cd03
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 27 deletions.
23 changes: 0 additions & 23 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion datastores/gossip_kv/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ license = "Apache-2.0"
publish = false

[dependencies]
affinity = "0.1.2"
clap = { version = "4.5.4", features = ["derive", "env"] }
config = "0.14.0"
governor = "0.7.0"
Expand Down
3 changes: 0 additions & 3 deletions datastores/gossip_kv/load_test_server/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use std::convert::Infallible;
use std::num::{NonZeroU32, ParseFloatError};
use std::thread::sleep;
use std::time::Duration;
use affinity::set_thread_affinity;
use clap::Parser;
use gossip_kv::membership::{MemberDataBuilder, Protocol};
use gossip_kv::{ClientRequest, GossipMessage, Key};
Expand Down Expand Up @@ -65,7 +64,6 @@ fn run_server(
let (client_input_tx, client_input_rx) = bounded_channel(1000);

std::thread::spawn(move || {
set_thread_affinity([0]).unwrap();

let rt = tokio::runtime::Builder::new_current_thread()
.enable_all()
Expand Down Expand Up @@ -122,7 +120,6 @@ fn run_server(
});

std::thread::spawn(move || {
set_thread_affinity([2]).unwrap();
let rt = tokio::runtime::Builder::new_current_thread()
.enable_all()
.build()
Expand Down

0 comments on commit 988cd03

Please sign in to comment.