Skip to content

Commit

Permalink
fix desc
Browse files Browse the repository at this point in the history
  • Loading branch information
Yisaer committed Jul 2, 2020
1 parent aadd35e commit 84a27db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions server/api/region.go
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ func (h *regionsHandler) GetTopSize(w http.ResponseWriter, r *http.Request) {
}

// @Tags region
// @Summary Accelerate regions scheduling priority in given range
// @Summary Accelerate regions schedule in given range
// @Accept json
// @Param body body object true "json params"
// @Produce json
Expand All @@ -568,7 +568,7 @@ func (h *regionsHandler) GetTopSize(w http.ResponseWriter, r *http.Request) {
// @Success 200 {object} string "The regions in given range have been improve schedule priority"
// @Failure 400 {string} string "The input is invalid."
// @Router /regions/keys/accelerate-schedule [post]
func (h *regionsHandler) AccelerateRegionsSchedulePriorityInRange(w http.ResponseWriter, r *http.Request) {
func (h *regionsHandler) AccelerateRegionsScheduleInRange(w http.ResponseWriter, r *http.Request) {
rc := getCluster(r.Context())
var input map[string]interface{}
if err := apiutil.ReadJSONRespondError(h.rd, w, r.Body, &input); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion server/api/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func createRouter(ctx context.Context, prefix string, svr *server.Server) *mux.R
clusterRouter.HandleFunc("/regions/check/hist-size", regionsHandler.GetSizeHistogram).Methods("GET")
clusterRouter.HandleFunc("/regions/check/hist-keys", regionsHandler.GetKeysHistogram).Methods("GET")
clusterRouter.HandleFunc("/regions/sibling/{id}", regionsHandler.GetRegionSiblings).Methods("GET")
clusterRouter.HandleFunc("/regions/keys/accelerate-schedule", regionsHandler.AccelerateRegionsSchedulePriorityInRange).Methods("POST")
clusterRouter.HandleFunc("/regions/keys/accelerate-schedule", regionsHandler.AccelerateRegionsScheduleInRange).Methods("POST")

apiRouter.Handle("/version", newVersionHandler(rd)).Methods("GET")
apiRouter.Handle("/status", newStatusHandler(svr, rd)).Methods("GET")
Expand Down

0 comments on commit 84a27db

Please sign in to comment.