fix: no silent failure when auto enroll is already running

This commit is contained in:
medcl 2024-03-25 23:46:08 +08:00
parent 9020e691de
commit 3daf21c2af
1 changed files with 1 additions and 0 deletions

View File

@ -399,6 +399,7 @@ func (h *APIHandler) autoEnrollESNode(w http.ResponseWriter, req *http.Request,
}
if autoEnrollRunning.Load() {
panic(errors.New("auto_enroll is already running in background"))
return
}