Skip to content

Commit c66131e

Browse files
committed
use GracefulExitContext
1 parent cd6bbe5 commit c66131e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/service/connect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ func (process *TeleportProcess) firstTimeConnect(role types.SystemRole) (*Connec
430430
// Instance always joins first, only try to persist host ID after
431431
// successfully completing the instance join and persisting the state
432432
// and identity.
433-
if err := process.storage.PersistAssignedHostID(process.ExitContext(), process.Config, identity.ID.HostID()); err != nil {
433+
if err := process.storage.PersistAssignedHostID(process.GracefulExitContext(), process.Config, identity.ID.HostID()); err != nil {
434434
return nil, trace.Wrap(err, "persisting host ID to storage")
435435
}
436436
}

0 commit comments

Comments
 (0)