Skip to content

Conversation

@real-danm
Copy link
Contributor

No description provided.

cmd/lk/agent.go Outdated
agentID = lkConfig.Agent.ID
} else {
agentID, err = selectAgent(ctx, cmd, false)
agentID, err = selectAgent(cmd, false)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason not to propagate ctx? this fn makes network requests, but i guess we're only ever cancelling it via SIGINT/SIGKILL

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point on context, i updated to propogate it to the util.Await function

@rektdeckard
Copy link
Member

LGTM, is this ready to merge?

Copy link
Contributor

@dwayn dwayn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

return nil, err
}

if clientSettingsResponse == nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have nil error and nil clientSettingsResponse at the same time?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point...i don't think twirp ever does that but i'm not positive

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably not, but doesn't hurt to leave this in so it doesn't panic in that case

@real-danm real-danm merged commit f44e205 into main Aug 18, 2025
6 checks passed
@real-danm real-danm deleted the dan/fix-client-settings-panic branch August 18, 2025 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants