Skip to content

Commit

Permalink
Lint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ashu26jha committed May 13, 2024
1 parent 6726ac6 commit 0287ef2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sync/sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@ func BenchmarkSync(b *testing.B) {
for i := 0; i < b.N; i++ {
ctx, cancel := context.WithTimeout(context.Background(), timeout)
err := synchronizer.Run(ctx)
defer cancel()
if err != nil {
b.Error("failed to synchronize: ", err)
b.Error("failed to synchronise: ", err)
}
cancel()
}
}

Expand Down Expand Up @@ -286,7 +286,6 @@ func BenchmarkRPC(b *testing.B) {

for i := 0; i < b.N; i++ {
_, err := handler.BlockTransactionCount(rpc.BlockID{Latest: true})

if err != nil {
b.Error("RPC call failed: ", err)
}
Expand Down

0 comments on commit 0287ef2

Please sign in to comment.