From 4052699d2a22d184f1daaba77c43d3a5a66e04fd Mon Sep 17 00:00:00 2001 From: lhy1024 Date: Fri, 13 Sep 2024 16:24:39 +0800 Subject: [PATCH] rename for lint Signed-off-by: lhy1024 --- server/api/scheduler.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/api/scheduler.go b/server/api/scheduler.go index a25aefd76cf..3868bbde9ed 100644 --- a/server/api/scheduler.go +++ b/server/api/scheduler.go @@ -148,7 +148,7 @@ func (h *schedulerHandler) CreateScheduler(w http.ResponseWriter, r *http.Reques } collector(strconv.FormatUint(limit, 10)) case types.GrantHotRegionScheduler: - schedulers, err := h.getSchedulers() + schedulers, err := h.getSchedulersOnDifferentMode() if err != nil { h.r.JSON(w, http.StatusInternalServerError, err.Error()) return @@ -170,7 +170,7 @@ func (h *schedulerHandler) CreateScheduler(w http.ResponseWriter, r *http.Reques collector(leaderID) collector(peerIDs) case types.BalanceHotRegionScheduler: - schedulers, err := h.getSchedulers() + schedulers, err := h.getSchedulersOnDifferentMode() if err != nil { h.r.JSON(w, http.StatusInternalServerError, err.Error()) return @@ -270,7 +270,7 @@ func (h *schedulerHandler) PauseOrResumeScheduler(w http.ResponseWriter, r *http h.r.JSON(w, http.StatusOK, "Pause or resume the scheduler successfully.") } -func (h *schedulerHandler) getSchedulers() ([]string, error) { +func (h *schedulerHandler) getSchedulersOnDifferentMode() ([]string, error) { rc, err := h.GetRaftCluster() if err != nil { return nil, err