linting errors: afew more

This commit is contained in:
Zach Ramsay
2017-11-27 22:39:11 +00:00
committed by Ethan Buchman
parent 8f0237610e
commit 68e7983c70
12 changed files with 50 additions and 24 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ func (part *Part) Hash() []byte {
return part.hash
} else {
hasher := ripemd160.New()
_, _ := hasher.Write(part.Bytes) // ignoring error
_, _ = hasher.Write(part.Bytes) // ignoring error
part.hash = hasher.Sum(nil)
return part.hash
}
+4 -1
View File
@@ -30,7 +30,10 @@ func BenchmarkProposalWriteSignBytes(b *testing.B) {
func BenchmarkProposalSign(b *testing.B) {
privVal := GenPrivValidatorFS("")
for i := 0; i < b.N; i++ {
privVal.Signer.Sign(SignBytes("test_chain_id", testProposal))
_, err := privVal.Signer.Sign(SignBytes("test_chain_id", testProposal))
if err != nil {
b.Error(err)
}
}
}