diff --git a/modules/router/router.go b/modules/router/router.go index 19afa5d..7664544 100644 --- a/modules/router/router.go +++ b/modules/router/router.go @@ -509,7 +509,7 @@ func (rt *Router) ApiHandler(w http.ResponseWriter, r *http.Request) { // Если в кластере есть недовосстановленные индексы - прерываем if ch_status.InitializingShards > 5 || ch_status.UnassignedShards > 5 { - msg := `{"message":"Indices will not be restored at now. Please wait", "error":1}` + msg := `{"error":"Indices will not be restored at now. Please wait"}` http.Error(w, msg, http.StatusTooManyRequests) log.Println(remoteIP, "\t", r.Method, "\t", r.URL.Path, "\t", request.Action, "\t", http.StatusTooManyRequests, "\t", msg) return diff --git a/modules/version/version.go b/modules/version/version.go index 0fc36af..85c91a5 100644 --- a/modules/version/version.go +++ b/modules/version/version.go @@ -13,4 +13,4 @@ package version -var Version = "extractor/v0.2.20" +var Version = "extractor/v0.2.21"