From e969de3662878570b10c11fd30bdf2ae2834996b Mon Sep 17 00:00:00 2001 From: Ryan Leung Date: Tue, 24 Sep 2024 15:38:01 +0800 Subject: [PATCH] resolve the conflicts Signed-off-by: Ryan Leung --- plugin/scheduler_example/evict_leader.go | 1 - 1 file changed, 1 deletion(-) diff --git a/plugin/scheduler_example/evict_leader.go b/plugin/scheduler_example/evict_leader.go index 26f247cfe60..0748ca200d0 100644 --- a/plugin/scheduler_example/evict_leader.go +++ b/plugin/scheduler_example/evict_leader.go @@ -278,7 +278,6 @@ func (handler *evictLeaderHandler) UpdateConfig(w http.ResponseWriter, r *http.R err := handler.config.BuildWithArgs(args) if err != nil { handler.config.mu.Lock() - delete(handler.config.StoreIDWitRanges, id) handler.config.cluster.ResumeLeaderTransfer(id) handler.config.mu.Unlock() handler.rd.JSON(w, http.StatusBadRequest, err.Error())