From baa12b092578d41218585d918fb7e1425700272d Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Mon, 19 Apr 2021 16:42:28 +0300 Subject: - Add tests, update Informer implementation Signed-off-by: Valery Piashchynski --- pkg/worker/worker.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'pkg/worker/worker.go') diff --git a/pkg/worker/worker.go b/pkg/worker/worker.go index b04e1363..69c438b0 100755 --- a/pkg/worker/worker.go +++ b/pkg/worker/worker.go @@ -96,14 +96,12 @@ func (w *Process) State() State { return w.state } -// State return receive-only Process state object, state can be used to safely access -// Process status, time when status changed and number of Process executions. +// AttachRelay attaches relay to the worker func (w *Process) AttachRelay(rl relay.Relay) { w.relay = rl } -// State return receive-only Process state object, state can be used to safely access -// Process status, time when status changed and number of Process executions. +// Relay returns relay attached to the worker func (w *Process) Relay() relay.Relay { return w.relay } -- cgit v1.2.3