summaryrefslogtreecommitdiff
path: root/static_pool.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-05-03 13:28:49 +0300
committerWolfy-J <[email protected]>2019-05-03 13:28:49 +0300
commit46519d2a383c9564007e1d2a6beb492988f8c6c9 (patch)
tree5d0e8a1d60bff08b86d425bc71ed02a47884e92b /static_pool.go
parentece33086ee1dfbf82e10665165054f6d7d2af1ed (diff)
empty static pool
Diffstat (limited to 'static_pool.go')
-rw-r--r--static_pool.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/static_pool.go b/static_pool.go
index d81ef7e2..1409fc3f 100644
--- a/static_pool.go
+++ b/static_pool.go
@@ -122,14 +122,6 @@ func (p *StaticPool) Remove(w *Worker, err error) {
}
p.remove.Store(w, err)
-
- // cleanup workers which were scheduled for deletion after stop has been started
- p.remove.Range(func(key, value interface{}) bool {
- if key.(*Worker).State().Value() == StateStopped || key.(*Worker).State().Value() == StateErrored {
- p.remove.Delete(key)
- }
- return true
- })
}
// Exec one task with given payload and context, returns result or error.