Skip to content

Commit

Permalink
rename for lint
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <[email protected]>
  • Loading branch information
lhy1024 committed Sep 13, 2024
1 parent 071b116 commit 4052699
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/api/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4052699

Please sign in to comment.