Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shiqizng committed Apr 5, 2023
1 parent e5f6987 commit 4c1830f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/block-generator/runner/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ func startGenerator(configFile string, addr string, blockMiddleware func(http.Ha

return func() error {
// stop generator
generator.Stop()
defer generator.Stop()
// Shutdown blocks until the server has stopped.
if err := server.Shutdown(context.Background()); err != nil {
return fmt.Errorf("failed during generator graceful shutdown: %w", err)
Expand Down

0 comments on commit 4c1830f

Please sign in to comment.