aboutsummaryrefslogtreecommitdiffhomepage
path: root/pingora-ketama
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 /pingora-ketama
parentdd54b59d38080f9de072a2e4f720c8da22fb0dfd (diff)
downloadpingora-fa0ee757401c0058cdf0170bc7fe3680c41e872f.tar.gz
pingora-fa0ee757401c0058cdf0170bc7fe3680c41e872f.zip
Sort unstable when building Ketama ring
Diffstat (limited to 'pingora-ketama')
-rw-r--r--pingora-ketama/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
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 {