更新golang版本

pull/358/head
lifei6671 2018-07-11 10:18:34 +08:00
parent f5737c6a73
commit fc1fa662c4
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
language: go language: go
go: go:
- "1.10" - "1.10.3"
sudo: true sudo: true
install: false install: false

View File

@ -3,7 +3,7 @@ clone_folder: c:\gopath\src\github.com\lifei6671\mindoc
environment: environment:
GOPATH: c:\gopath GOPATH: c:\gopath
GOVERSION: "1.10" GOVERSION: "1.10.3"
matrix: matrix:
- tbs_arch: "x86" - tbs_arch: "x86"
tbs_tools: "mingw" tbs_tools: "mingw"

View File

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