mirror of https://github.com/mindoc-org/mindoc.git
更新golang版本
parent
f5737c6a73
commit
fc1fa662c4
|
@ -1,7 +1,7 @@
|
||||||
language: go
|
language: go
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- "1.10"
|
- "1.10.3"
|
||||||
|
|
||||||
sudo: true
|
sudo: true
|
||||||
install: false
|
install: false
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue