fix: canceling the heal caused goroutine to leak. (#18322)

This commit is contained in:
jiuker
2023-10-26 22:53:06 +08:00
committed by GitHub
parent 96ec8fcba1
commit d5e8dac1cf

View File

@@ -1056,7 +1056,7 @@ func (a adminAPIHandlers) HealHandler(w http.ResponseWriter, r *http.Request) {
return
}
respCh := make(chan healResp)
respCh := make(chan healResp, 1)
switch {
case hip.forceStop:
go func() {