Skip to content

Commit 94352a6

Browse files
committed
Remove hardcoded 1 minute graceful timeout
Signed-off-by: Spike Curtis <spike@coder.com>
1 parent 9f4a7f6 commit 94352a6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

enterprise/cli/provisionerdaemons.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,7 @@ func (r *RootCmd) provisionerDaemonStart() *clibase.Cmd {
137137
cliui.Errorf(inv.Stderr, "Unexpected error, shutting down server: %s\n", exitErr)
138138
}
139139

140-
shutdown, shutdownCancel := context.WithTimeout(ctx, time.Minute)
141-
defer shutdownCancel()
142-
err = srv.Shutdown(shutdown)
140+
err = srv.Shutdown(ctx)
143141
if err != nil {
144142
return xerrors.Errorf("shutdown: %w", err)
145143
}

0 commit comments

Comments
 (0)