diff options
author | Wolfy-J <[email protected]> | 2018-04-15 12:48:06 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-04-15 12:48:06 +0300 |
commit | e2c1c66d7a35a9c60a4f05126691242068ebb589 (patch) | |
tree | 76db075971f2fe683ed3bf643bbf097b47178a5a /static_pool.go | |
parent | f8ff7aeedc893969d02115d23b62503a75228446 (diff) |
report instead of observe
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 c119a270..c4895bf0 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 } -// Watch attaches pool event watcher. -func (p *StaticPool) Watch(o func(event int, w *Worker, ctx interface{})) { +// Report attaches pool event watcher. +func (p *StaticPool) Report(o func(event int, w *Worker, ctx interface{})) { p.observer = o } |