Refactor sharding logic; coming next: full replication with epidemic dissemination

This commit is contained in:
Alex Auvolat
2020-04-19 13:22:28 +02:00
parent 4ba54ccfca
commit 7131553c53
8 changed files with 218 additions and 162 deletions
+1 -1
View File
@@ -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<_>>();
}