Fix type of WorkerState constants
authorAleksander Mistewicz <a.mistewicz@samsung.com>
Mon, 4 Sep 2017 09:21:49 +0000 (11:21 +0200)
committerMaciej Wereski <m.wereski@partner.samsung.com>
Wed, 20 Sep 2017 08:50:36 +0000 (10:50 +0200)
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 <a.mistewicz@samsung.com>
Reviewed-on: https://mcdsrvbld02.digital.local/review/49430
Reviewed-by: Maciej Wereski <m.wereski@partner.samsung.com>
Tested-by: Maciej Wereski <m.wereski@partner.samsung.com>
boruta.go

index a4d08c8..406a98e 100644 (file)
--- 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.