ignore errors when building the cache key hash

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2023-05-03 11:26:46 +02:00
parent c7bbdd2eae
commit 024e66ffd0
+5 -5
View File
@@ -278,11 +278,11 @@ func spaceRootStatKey(id *storageprovider.ResourceId, imagenode, readmeNode stri
return "" return ""
} }
sha3 := sha3.NewShake256() sha3 := sha3.NewShake256()
sha3.Write([]byte(id.GetStorageId())) _, _ = sha3.Write([]byte(id.GetStorageId()))
sha3.Write([]byte(id.GetSpaceId())) _, _ = sha3.Write([]byte(id.GetSpaceId()))
sha3.Write([]byte(id.GetOpaqueId())) _, _ = sha3.Write([]byte(id.GetOpaqueId()))
sha3.Write([]byte(imagenode)) _, _ = sha3.Write([]byte(imagenode))
sha3.Write([]byte(readmeNode)) _, _ = sha3.Write([]byte(readmeNode))
h := make([]byte, 64) h := make([]byte, 64)
sha3.Read(h) sha3.Read(h)
return fmt.Sprintf("%x", h) return fmt.Sprintf("%x", h)