Skip to content

Commit

Permalink
make balance terminate
Browse files Browse the repository at this point in the history
  • Loading branch information
hlbarber committed Dec 29, 2023
1 parent 19040d0 commit a67eab2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/balance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async fn main() {
tracing_subscriber::fmt().init();

const N_SERVICES: u64 = 4;
const LATENCY_RANGE_MS: Range<u64> = 10..500;
const LATENCY_RANGE_MS: Range<u64> = 10..250;

let stream = iter(0..N_SERVICES).map(|index| {
let latency_ms = 3 * N_SERVICES * rand::thread_rng().gen_range(LATENCY_RANGE_MS);
Expand All @@ -33,7 +33,7 @@ async fn main() {
let _ = worker.await;

let mut futures_unordered = FuturesUnordered::new();
loop {
for _ in 0..100 {
let load_profile = svc.load_profile().await;
tracing::info!(?load_profile);

Expand Down

0 comments on commit a67eab2

Please sign in to comment.