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/schema.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/schema.rs')
-rw-r--r-- | src/table/schema.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/table/schema.rs b/src/table/schema.rs index d2ec9450..61deb3c1 100644 --- a/src/table/schema.rs +++ b/src/table/schema.rs @@ -10,7 +10,7 @@ pub trait PartitionKey { impl PartitionKey for String { fn hash(&self) -> Hash { - hash(self.as_bytes()) + sha256sum(self.as_bytes()) } } |