Skip to content

Commit

Permalink
Update cmd/vela-worker/register.go
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob Floyd <cognifloyd@gmail.com>
  • Loading branch information
timhuynh94 and cognifloyd authored Oct 25, 2023
1 parent f3b1c0c commit 1196b42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/vela-worker/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func (w *Worker) checkIn(config *library.Worker) (bool, string, error) {
_, resp, err := w.VelaClient.Worker.Get(config.GetHostname())
if err != nil {
respErr := fmt.Errorf("unable to retrieve worker %s from the server: %w", config.GetHostname(), err)
// in the event of server is down, the worker status will not be updated
// if server is down, the worker status will not be updated
if resp == nil {
return false, "", respErr
}
Expand Down

0 comments on commit 1196b42

Please # to comment.