Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kislaykishore committed Sep 5, 2024
1 parent 37c6717 commit 86774f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/legacy_main.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,10 @@ func Mount(newConfig *cfg.Config, bucketName, mountPoint string) (err error) {
monitor.CloseOpenTelemetryCollectorExporter()
monitor.ClosePrometheusCollectorExporter()
if shutdownFn != nil {
shutdownFn(ctx)
shutdownErr := shutdownFn(ctx)
if shutdownErr != nil {
logger.Errorf("Error while shutting down trace exporter: %v", shutdownErr)
}
}

if err != nil {
Expand Down

0 comments on commit 86774f9

Please sign in to comment.