diff options
author | Andrew Hauck <[email protected]> | 2024-02-28 15:07:27 -0800 |
---|---|---|
committer | Yuchen Wu <[email protected]> | 2024-03-01 13:47:27 -0800 |
commit | fa0ee757401c0058cdf0170bc7fe3680c41e872f (patch) | |
tree | a7e5f76f1a2f1d727c281184a89a18d49ee26a0a /pingora-ketama | |
parent | dd54b59d38080f9de072a2e4f720c8da22fb0dfd (diff) | |
download | pingora-fa0ee757401c0058cdf0170bc7fe3680c41e872f.tar.gz pingora-fa0ee757401c0058cdf0170bc7fe3680c41e872f.zip |
Sort unstable when building Ketama ring
Diffstat (limited to 'pingora-ketama')
-rw-r--r-- | pingora-ketama/src/lib.rs | 2 |
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 { |