-
Notifications
You must be signed in to change notification settings - Fork 126
check for empty client settings #649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…nd use ctx in the spinner closure
cmd/lk/agent.go
Outdated
| agentID = lkConfig.Agent.ID | ||
| } else { | ||
| agentID, err = selectAgent(ctx, cmd, false) | ||
| agentID, err = selectAgent(cmd, false) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
|
LGTM, is this ready to merge? |
dwayn
left a comment
There was a problem hiding this 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 { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
No description provided.