summaryrefslogtreecommitdiff
path: root/pkg/transport/interface.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-08-03 13:36:31 +0300
committerValery Piashchynski <[email protected]>2021-08-03 13:36:31 +0300
commit606e2170ccac5a13a11198aaf54e4219a83291ab (patch)
tree6eeb30453e7a1582f339e78772d639f00115221c /pkg/transport/interface.go
parent31752d8bd20294c7d52cd3612fbf18e44ce42637 (diff)
In a rare cases, when user set small timeout to allocate a worker,
spawned goroutine might stuck on the channel send operation and leak memory. Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'pkg/transport/interface.go')
-rw-r--r--pkg/transport/interface.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/transport/interface.go b/pkg/transport/interface.go
index 7e3e5350..1b072378 100644
--- a/pkg/transport/interface.go
+++ b/pkg/transport/interface.go
@@ -8,7 +8,7 @@ import (
"github.com/spiral/roadrunner/v2/pkg/worker"
)
-// Factory is responsible of wrapping given command into tasks WorkerProcess.
+// Factory is responsible for wrapping given command into tasks WorkerProcess.
type Factory interface {
// SpawnWorkerWithTimeout creates new WorkerProcess process based on given command with context.
// Process must not be started.