[#423] *: Use hrw.StringHash() where possible
All checks were successful
ci/woodpecker/push/pre-commit Pipeline was successful

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2023-06-02 15:39:16 +03:00 committed by Evgenii Stratonikov
parent cd92d8a9e7
commit 41ab4d070e
5 changed files with 6 additions and 6 deletions

View file

@ -216,7 +216,7 @@ func addressHash(addr *oid.Address, path string) uint64 {
a = addr.EncodeToString()
}
return hrw.Hash([]byte(a + path))
return hrw.StringHash(a + path)
}
// converts uint64 to hex string.