Skip to content

Commit d8f0933

Browse files
Apply suggestions from code review
Co-authored-by: Cian Johnston <cian@coder.com>
1 parent d079b8d commit d8f0933

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/coderd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1663,7 +1663,7 @@ func (api *API) Close() error {
16631663
_ = api.UpdatesProvider.Close()
16641664

16651665
if current := api.PrebuildsReconciler.Load(); current != nil {
1666-
ctx, giveUp := context.WithTimeoutCause(context.Background(), time.Second*30, xerrors.New("gave up waiting for reconciler to stop"))
1666+
ctx, giveUp := context.WithTimeoutCause(context.Background(), time.Second*30, xerrors.New("gave up waiting for reconciler to stop before shutdown"))
16671667
defer giveUp()
16681668
(*current).Stop(ctx, nil)
16691669
}

0 commit comments

Comments
 (0)