From 655104ce4e075ed14f49d7150e60a3637e8eb7af Mon Sep 17 00:00:00 2001 From: Boris Date: Sat, 28 Dec 2024 12:31:52 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BE=D1=82=D0=B2=D0=B5=D1=82=20=D0=BF=D1=80=D0=B8=20?= =?UTF-8?q?=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/router/router.go | 2 +- modules/version/version.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"