Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik committed Jun 23, 2024
1 parent 59de47b commit 7030665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/cmd/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ func WorkerSetup(opts *WorkerSetupOptions) (*workerSetupResponse, error) {
clientOptions.Logger.Error("Failed to setup datadog profiling", "error", err)
return nil, err
}
defer shutDownDDProfiler()

if opts.TemporalCert != "" && opts.TemporalKey != "" {
slog.Info("Using temporal certificate/key for authentication")
Expand Down Expand Up @@ -195,6 +194,7 @@ func WorkerSetup(opts *WorkerSetupOptions) (*workerSetupResponse, error) {
Client: c,
Worker: w,
Cleanup: func() {
shutDownDDProfiler()
cleanupOtelManagerFunc()
c.Close()
},
Expand Down

0 comments on commit 7030665

Please sign in to comment.