mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
cmd/workload: fix lint
This commit is contained in:
parent
2a2a902aab
commit
bfa01c70e2
1 changed files with 5 additions and 5 deletions
|
|
@ -370,14 +370,14 @@ func (s *filterTestGen) writeQueries() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// writeQueries serializes the generated errors to the error file.
|
// writeQueries serializes the generated errors to the error file.
|
||||||
func (f *filterTestGen) writeErrors() {
|
func (s *filterTestGen) writeErrors() {
|
||||||
file, err := os.Create(f.errorFile)
|
file, err := os.Create(s.errorFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
exit(fmt.Errorf("Error creating filter error file %s: %v", f.errorFile, err))
|
exit(fmt.Errorf("Error creating filter error file %s: %v", s.errorFile, err))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
json.NewEncoder(file).Encode(f.errors)
|
defer file.Close()
|
||||||
file.Close()
|
json.NewEncoder(file).Encode(s.errors)
|
||||||
}
|
}
|
||||||
|
|
||||||
func mustGetFinalizedBlock(ec *ethclient.Client) int64 {
|
func mustGetFinalizedBlock(ec *ethclient.Client) int64 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue