Skip to content

Commit

Permalink
remove async-trait
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Dec 29, 2023
1 parent 4970913 commit faedb9c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions benches/bench_balance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,16 @@ fn bench_balance(b: &mut test::Bencher) {
let load = LoadBalance::<C>::new();
load.put(C {
addr: "127.0.0.1:13000".to_string(),
})
.await;
});
load.put(C {
addr: "127.0.0.1:13001".to_string(),
})
.await;
});
load.put(C {
addr: "127.0.0.1:13002".to_string(),
})
.await;
});
load.put(C {
addr: "127.0.0.1:13003".to_string(),
})
.await;
});
b.iter(|| {
load.do_balance(LoadBalanceType::Round, "");
});
Expand Down

0 comments on commit faedb9c

Please sign in to comment.