[#423] *: Use hrw.StringHash() where possible

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

@ -110,7 +110,7 @@ func (e *StorageEngine) removeObjects(ctx context.Context, ch <-chan oid.Address
}
for addr := range ch {
h := hrw.Hash([]byte(addr.EncodeToString()))
h := hrw.StringHash(addr.EncodeToString())
shards := sortShardsByWeight(shards, h)
found := false
for i := range shards {