summaryrefslogtreecommitdiff
path: root/boruta.go
diff options
context:
space:
mode:
authorAleksander Mistewicz <a.mistewicz@samsung.com>2017-09-04 11:21:49 +0200
committerMaciej Wereski <m.wereski@partner.samsung.com>2017-09-20 10:50:36 +0200
commit310e803740d2cadf35e42dfef2c4c8844a13c50d (patch)
treec221ac7c7e40203736615b997ffa3a9629729b1c /boruta.go
parent402270e1b97b5a5845a9e6402f3dc2cb8840cf35 (diff)
downloadboruta-310e803740d2cadf35e42dfef2c4c8844a13c50d.tar.gz
boruta-310e803740d2cadf35e42dfef2c4c8844a13c50d.tar.bz2
boruta-310e803740d2cadf35e42dfef2c4c8844a13c50d.zip
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 <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>
Diffstat (limited to 'boruta.go')
-rw-r--r--boruta.go6
1 files 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.