Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
leszko committed Jul 16, 2024
1 parent 435a881 commit 640f013
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion balancer/mist/mist_balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,10 @@ func (b *MistBalancer) formatNodeAddress(server string) string {
// It uses pkill to kill the process.
func (b *MistBalancer) killPreviousBalancer(ctx context.Context) {
cmd := exec.CommandContext(ctx, "pkill", "-f", "MistUtilLoad")
cmd.Run()
err := cmd.Run()
if err != nil {
glog.V(6).Infof("Killing MistUtilLoad failed, most probably it was not running")
}
}

// reconcileBalancerLoop makes sure that MistUtilLoad is up and running all the time.
Expand Down

0 comments on commit 640f013

Please sign in to comment.