Skip to content

Commit

Permalink
review(distribute): add use statement
Browse files Browse the repository at this point in the history
Signed-off-by: katelyn martin <[email protected]>
  • Loading branch information
cratelyn committed Jan 28, 2025
1 parent 9fd7f36 commit ac5e0c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions linkerd/distribute/src/service/random.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::{keys::KeyId, WeightedServiceKeys};
use ahash::HashMap;
use linkerd_stack::{NewService, Service};
use rand::{rngs::SmallRng, SeedableRng};
use rand::{distr::weighted, rngs::SmallRng, SeedableRng};
use std::{
hash::Hash,
sync::Arc,
Expand Down Expand Up @@ -92,7 +92,7 @@ where
// to `poll_ready` can try this backend again.
match selector.disable_backend(id) {
Ok(()) => {}
Err(rand::distr::weighted::Error::InsufficientNonZero) => {
Err(weighted::Error::InsufficientNonZero) => {
// There are no backends remaining.
break;
}
Expand Down

0 comments on commit ac5e0c8

Please sign in to comment.