mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix build and lint (#1613)
Signed-off-by: Spike Curtis <spike@coder.com>
This commit is contained in:
+1
-1
@@ -110,7 +110,7 @@ func server() *cobra.Command {
|
||||
logger.Warn(cmd.Context(), "failed to start telemetry exporter", slog.Error(err))
|
||||
} else {
|
||||
defer func() {
|
||||
// allow time for traces to flush even if command context is cancelled
|
||||
// allow time for traces to flush even if command context is canceled
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
|
||||
defer cancel()
|
||||
_ = tracerProvider.Shutdown(ctx)
|
||||
|
||||
Reference in New Issue
Block a user