summaryrefslogtreecommitdiff
path: root/supervisor_pool.go
diff options
context:
space:
mode:
Diffstat (limited to 'supervisor_pool.go')
-rwxr-xr-xsupervisor_pool.go10
1 files changed, 3 insertions, 7 deletions
diff --git a/supervisor_pool.go b/supervisor_pool.go
index b354b493..6fcb71e6 100755
--- a/supervisor_pool.go
+++ b/supervisor_pool.go
@@ -156,10 +156,8 @@ func (sp *supervisedPool) control() {
if err != nil {
sp.events.Push(PoolEvent{Event: EventSupervisorError, Payload: errors.E(op, err)})
return
- } else {
- sp.events.Push(PoolEvent{Event: EventTTL, Payload: workers[i]})
}
-
+ sp.events.Push(PoolEvent{Event: EventTTL, Payload: workers[i]})
continue
}
@@ -168,9 +166,8 @@ func (sp *supervisedPool) control() {
if err != nil {
sp.events.Push(PoolEvent{Event: EventSupervisorError, Payload: errors.E(op, err)})
return
- } else {
- sp.events.Push(PoolEvent{Event: EventMaxMemory, Payload: workers[i]})
}
+ sp.events.Push(PoolEvent{Event: EventMaxMemory, Payload: workers[i]})
continue
}
@@ -201,9 +198,8 @@ func (sp *supervisedPool) control() {
if err != nil {
sp.events.Push(PoolEvent{Event: EventSupervisorError, Payload: errors.E(op, err)})
return
- } else {
- sp.events.Push(PoolEvent{Event: EventIdleTTL, Payload: workers[i]})
}
+ sp.events.Push(PoolEvent{Event: EventIdleTTL, Payload: workers[i]})
}
}
}