aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrew Hauck <[email protected]>2024-02-28 15:07:27 -0800
committerYuchen Wu <[email protected]>2024-03-01 13:47:27 -0800
commitfa0ee757401c0058cdf0170bc7fe3680c41e872f (patch)
treea7e5f76f1a2f1d727c281184a89a18d49ee26a0a
parentdd54b59d38080f9de072a2e4f720c8da22fb0dfd (diff)
downloadpingora-fa0ee757401c0058cdf0170bc7fe3680c41e872f.tar.gz
pingora-fa0ee757401c0058cdf0170bc7fe3680c41e872f.zip
Sort unstable when building Ketama ring
-rw-r--r--.bleep2
-rw-r--r--pingora-ketama/src/lib.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/.bleep b/.bleep
index 87cf892..96db636 100644
--- a/.bleep
+++ b/.bleep
@@ -1 +1 @@
-bc15229a4afa44364f388138e04cc05334937b5a \ No newline at end of file
+553d7cabaf8ea7a28c5cd5464a53dd5edbb5083a \ No newline at end of file
diff --git a/pingora-ketama/src/lib.rs b/pingora-ketama/src/lib.rs
index 0917056..9520073 100644
--- a/pingora-ketama/src/lib.rs
+++ b/pingora-ketama/src/lib.rs
@@ -183,7 +183,7 @@ impl Continuum {
}
// Sort and remove any duplicates.
- ring.sort();
+ ring.sort_unstable();
ring.dedup_by(|a, b| a.hash == b.hash);
Continuum {