diff options
author | Wolfy-J <[email protected]> | 2018-03-31 18:31:09 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-03-31 18:31:09 +0300 |
commit | f8ff7aeedc893969d02115d23b62503a75228446 (patch) | |
tree | abe67a449cba8e00f23ad25b43d481d4b6fa1dee /static_pool.go | |
parent | 73240266eb12fbc763d9780ba66ffa8bc0f2c38b (diff) |
worker destruction made public
Diffstat (limited to 'static_pool.go')
-rw-r--r-- | static_pool.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/static_pool.go b/static_pool.go index 04f08d24..c119a270 100644 --- a/static_pool.go +++ b/static_pool.go @@ -70,8 +70,8 @@ func NewPool(cmd func() *exec.Cmd, factory Factory, cfg Config) (*StaticPool, er return p, nil } -// Observe attaches pool event watcher. -func (p *StaticPool) Observe(o func(event int, w *Worker, ctx interface{})) { +// Watch attaches pool event watcher. +func (p *StaticPool) Watch(o func(event int, w *Worker, ctx interface{})) { p.observer = o } |