更新golang版本

This commit is contained in:
lifei6671
2018-07-11 10:18:34 +08:00
parent f5737c6a73
commit fc1fa662c4
3 changed files with 3 additions and 3 deletions

View File

@@ -76,10 +76,10 @@ func (pool *ChannelPool) Start() {
if limit {
pool.wait.Add(1)
go func(actual *entry) {
defer pool.wait.Done()
defer func() {
pool.cache.Delete(actual.key)
pool.limit <- true
pool.wait.Done()
}()
actual.handler()