summaryrefslogtreecommitdiff
path: root/supervisor_pool.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-11-19 17:28:30 +0300
committerValery Piashchynski <[email protected]>2020-11-19 17:28:30 +0300
commit71c81a91f9f967e41310077bd26b1dedb0b49556 (patch)
treecce9cb740bae0b9acbfc15d76823174f571a0a6c /supervisor_pool.go
parente9595a5c133ff02b765c0b59913593e7f91bc4e7 (diff)
huge linters fix update
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]})
}
}
}