mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-31 09:18:29 +00:00
Refactor sharding logic; coming next: full replication with epidemic dissemination
This commit is contained in:
+1
-1
@@ -198,7 +198,7 @@ impl Ring {
|
||||
self.walk_ring_from_pos(start, n)
|
||||
}
|
||||
|
||||
pub fn walk_ring_from_pos(&self, start: usize, n: usize) -> Vec<UUID> {
|
||||
fn walk_ring_from_pos(&self, start: usize, n: usize) -> Vec<UUID> {
|
||||
if n >= self.config.members.len() {
|
||||
return self.config.members.keys().cloned().collect::<Vec<_>>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user