summaryrefslogtreecommitdiff
path: root/supervisor_pool.go
diff options
context:
space:
mode:
Diffstat (limited to 'supervisor_pool.go')
-rwxr-xr-xsupervisor_pool.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/supervisor_pool.go b/supervisor_pool.go
index e23abdd1..b354b493 100755
--- a/supervisor_pool.go
+++ b/supervisor_pool.go
@@ -19,13 +19,13 @@ type SupervisedPool interface {
type supervisedPool struct {
cfg *SupervisorConfig
- events *util.EventHandler
+ events util.EventsHandler
pool Pool
stopCh chan struct{}
mu *sync.RWMutex
}
-func newPoolWatcher(pool Pool, events *util.EventHandler, cfg *SupervisorConfig) SupervisedPool {
+func newPoolWatcher(pool Pool, events util.EventsHandler, cfg *SupervisorConfig) SupervisedPool {
sp := &supervisedPool{
cfg: cfg,
events: events,
@@ -92,7 +92,7 @@ func (sp *supervisedPool) AddListener(listener util.EventListener) {
sp.pool.AddListener(listener)
}
-func (sp *supervisedPool) GetConfig() Config {
+func (sp *supervisedPool) GetConfig() PoolConfig {
return sp.pool.GetConfig()
}