diff options
author | Valery Piashchynski <[email protected]> | 2021-02-03 17:31:17 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-02-03 17:31:17 +0300 |
commit | 8eda5dc6f0f7e05d7b3d62e1861af05b49a2574a (patch) | |
tree | fae66ad49d2a4624a7caf45a5bf07d53e5c7d26f /pkg/events | |
parent | 20a1a5d2eb26090e0eef0e6772330ee2a52526fa (diff) |
Fix memory leak in the Worker.go
Diffstat (limited to 'pkg/events')
-rw-r--r-- | pkg/events/worker_events.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/events/worker_events.go b/pkg/events/worker_events.go index 9d428f7d..11bd6ab7 100644 --- a/pkg/events/worker_events.go +++ b/pkg/events/worker_events.go @@ -3,9 +3,10 @@ package events const ( // EventWorkerError triggered after WorkerProcess. Except payload to be error. EventWorkerError W = iota + 11000 - // EventWorkerLog triggered on every write to WorkerProcess StdErr pipe (batched). Except payload to be []byte string. EventWorkerLog + // EventWorkerStderr is the worker standard error output + EventWorkerStderr ) type W int64 @@ -16,6 +17,8 @@ func (ev W) String() string { return "EventWorkerError" case EventWorkerLog: return "EventWorkerLog" + case EventWorkerStderr: + return "EventWorkerStderr" } return "Unknown event type" } |