Skip to content

Commit

Permalink
Remove defer statements in stop
Browse files Browse the repository at this point in the history
  • Loading branch information
nhhagen committed Nov 28, 2024
1 parent 4c44d5c commit 213e2e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bootstrap2.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ func startProfiler(cfg *config) error {

// stop with a graceful shutdown that includes flushing signals.
func stop(_ *config) {
defer tracer.Stop()
defer profiler.Stop()
tracer.Stop()
profiler.Stop()
}

func getBoolEnv(key string, fallback bool) bool {
Expand Down

0 comments on commit 213e2e5

Please sign in to comment.