From 79fca9291278f75fa78f24c672a0dc850bd7fa11 Mon Sep 17 00:00:00 2001 From: kqzh <35095889+kqzh@users.noreply.github.com> Date: Tue, 18 Jan 2022 16:27:26 +0800 Subject: [PATCH] rename imbalance to unbalance --- ccore/nebula/internal/driver/v3_0/wrapper.go | 2 +- ccore/nebula/types/types.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ccore/nebula/internal/driver/v3_0/wrapper.go b/ccore/nebula/internal/driver/v3_0/wrapper.go index 357e3cf..6b4cbfa 100644 --- a/ccore/nebula/internal/driver/v3_0/wrapper.go +++ b/ccore/nebula/internal/driver/v3_0/wrapper.go @@ -1255,6 +1255,6 @@ func (b balancerWrap) GetStats() (types.BalanceStats, error) { case meta.JobStatus_QUEUE, meta.JobStatus_RUNNING: return types.Balancing, nil default: - return types.ImBalanced, nil + return types.Unbalanced, nil } } diff --git a/ccore/nebula/types/types.go b/ccore/nebula/types/types.go index d9a6ffb..a23ed9d 100644 --- a/ccore/nebula/types/types.go +++ b/ccore/nebula/types/types.go @@ -405,7 +405,7 @@ const ( BalanceLeader = BalanceCmd("Balance Leader") Balanced = BalanceStats("Balanced") - ImBalanced = BalanceStats("ImBalanced") + Unbalanced = BalanceStats("Unbalanced") Balancing = BalanceStats("Balancing") )