Fix lint issues

This commit is contained in:
Zoltan Papp
2024-07-08 21:53:20 +02:00
parent cfac8c4762
commit c3e8187a47
10 changed files with 29 additions and 29 deletions
+3 -1
View File
@@ -18,7 +18,9 @@ var (
func HashID(peerID string) ([]byte, string) {
idHash := sha256.Sum256([]byte(peerID))
idHashString := string(prefix) + base64.StdEncoding.EncodeToString(idHash[:])
prefixedHash := append(prefix, idHash[:]...)
var prefixedHash []byte
prefixedHash = append(prefixedHash, prefix...)
prefixedHash = append(prefixedHash, idHash[:]...)
return prefixedHash, idHashString
}