diff --git a/.travis.yml b/.travis.yml index 583b95e9..87faaa12 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: go go: - - "1.10" + - "1.10.3" sudo: true install: false diff --git a/appveyor.yml b/appveyor.yml index 2dcacf77..138bd63c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -3,7 +3,7 @@ clone_folder: c:\gopath\src\github.com\lifei6671\mindoc environment: GOPATH: c:\gopath - GOVERSION: "1.10" + GOVERSION: "1.10.3" matrix: - tbs_arch: "x86" tbs_tools: "mingw" diff --git a/utils/gopool/gopool.go b/utils/gopool/gopool.go index 50ca1c24..1ff82a73 100644 --- a/utils/gopool/gopool.go +++ b/utils/gopool/gopool.go @@ -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()