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 | |
parent | dd54b59d38080f9de072a2e4f720c8da22fb0dfd (diff) | |
download | pingora-fa0ee757401c0058cdf0170bc7fe3680c41e872f.tar.gz pingora-fa0ee757401c0058cdf0170bc7fe3680c41e872f.zip |
Sort unstable when building Ketama ring
-rw-r--r-- | .bleep | 2 | ||||
-rw-r--r-- | pingora-ketama/src/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 { |