From 310e803740d2cadf35e42dfef2c4c8844a13c50d Mon Sep 17 00:00:00 2001 From: Aleksander Mistewicz Date: Mon, 4 Sep 2017 11:21:49 +0200 Subject: [PATCH] Fix type of WorkerState constants For unknown reason only the first value defined in the const block had type WorkerState, all subsequent definitions had type string. Change-Id: I1320a8a94525f08f37e14b79188bcfdac0048b0e Signed-off-by: Aleksander Mistewicz Reviewed-on: https://mcdsrvbld02.digital.local/review/49430 Reviewed-by: Maciej Wereski Tested-by: Maciej Wereski --- boruta.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/boruta.go b/boruta.go index a4d08c8..406a98e 100644 --- a/boruta.go +++ b/boruta.go @@ -53,11 +53,11 @@ const ( // MAINTENANCE - Worker will not be assigned any Jobs. MAINTENANCE WorkerState = "MAINTENANCE" // IDLE - Worker is waiting for the Job. - IDLE = "IDLE" + IDLE WorkerState = "IDLE" // RUN - Job is currently being executed on the Worker. - RUN = "RUNNING" + RUN WorkerState = "RUNNING" // FAIL - An error occured, reported by the Worker itself or the Server. - FAIL = "FAILED" + FAIL WorkerState = "FAILED" ) // Capabilities describe the features provided by the Worker and required by the Request. -- 2.7.4