Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: liubo02 <[email protected]>
  • Loading branch information
liubog2008 committed Jan 10, 2025
1 parent be17d0f commit 443694e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/controllers/tikv/tasks/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ func TaskStatus(state *ReconcileContext, c client.Client) task.Task {
}

if state.PodIsTerminating {
//nolint:mnd // refactor to use a constant
return task.Retry(5 * time.Second).With("pod is terminating, retry after it's terminated")
return task.Retry(defaultTaskWaitDuration).With("pod is terminating, retry after it's terminated")
}

if state.LeaderEvicting {
Expand Down Expand Up @@ -118,7 +117,7 @@ func syncSuspendCond(tikv *v1alpha1.TiKV) bool {
}

// Status of this condition can only transfer as the below
func syncLeadersEvictedCond(tikv *v1alpha1.TiKV, store *pdv1.Store, isEvicting bool, isPDAvail bool) bool {
func syncLeadersEvictedCond(tikv *v1alpha1.TiKV, store *pdv1.Store, isEvicting, isPDAvail bool) bool {
status := metav1.ConditionFalse
reason := "NotEvicted"
msg := "leaders are not all evicted"
Expand Down

0 comments on commit 443694e

Please sign in to comment.