diff options
author | Alex Auvolat <alex@adnab.me> | 2020-04-19 13:22:28 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-04-19 13:22:28 +0200 |
commit | 7131553c53d4414d2da0e9b60e6e3425f1b46ec2 (patch) | |
tree | 22c4f225ebdbc600c9cbe38e11a01dbc228c5c11 /src/membership.rs | |
parent | 4ba54ccfca2ff8e56c58d0a652de256428282490 (diff) | |
download | garage-7131553c53d4414d2da0e9b60e6e3425f1b46ec2.tar.gz garage-7131553c53d4414d2da0e9b60e6e3425f1b46ec2.zip |
Refactor sharding logic; coming next: full replication with epidemic dissemination
Diffstat (limited to 'src/membership.rs')
-rw-r--r-- | src/membership.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/membership.rs b/src/membership.rs index e2f4bb90..08dd5f2f 100644 --- a/src/membership.rs +++ b/src/membership.rs @@ -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<_>>(); } |