diff options
author | Alex Auvolat <alex@adnab.me> | 2021-02-21 15:24:30 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-02-21 15:24:30 +0100 |
commit | b1b640ae8bd8d2ed7c128cb3f90e3e56226a5560 (patch) | |
tree | 55a703af2b8816b5c2e1aeb635db3538daa96a75 /src/table/table_fullcopy.rs | |
parent | e59322041a0f894db0dfbd32805303b64048c810 (diff) | |
download | garage-b1b640ae8bd8d2ed7c128cb3f90e3e56226a5560.tar.gz garage-b1b640ae8bd8d2ed7c128cb3f90e3e56226a5560.zip |
rename hash() to sha256sum(), we might want to change it at some places
Diffstat (limited to 'src/table/table_fullcopy.rs')
-rw-r--r-- | src/table/table_fullcopy.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/table/table_fullcopy.rs b/src/table/table_fullcopy.rs index 4659cb2c..e6f2c5fc 100644 --- a/src/table/table_fullcopy.rs +++ b/src/table/table_fullcopy.rs @@ -44,7 +44,7 @@ impl TableFullReplication { let mut nodes = vec![]; for (node, _) in ring.config.members.iter() { - let node_ranking = hash(&[node.as_slice(), my_id.as_slice()].concat()); + let node_ranking = sha256sum(&[node.as_slice(), my_id.as_slice()].concat()); nodes.push((*node, node_ranking)); } nodes.sort_by(|(_, rank1), (_, rank2)| rank1.cmp(rank2)); |