mirror of
https://github.com/gogs/gogs.git
synced 2025-12-22 00:00:07 +01:00
Fix compilation error
This commit is contained in:
4
vendor/github.com/gogits/git-module/tree_entry.go
generated
vendored
4
vendor/github.com/gogits/git-module/tree_entry.go
generated
vendored
@@ -113,6 +113,8 @@ func (tes Entries) Sort() {
|
||||
sort.Sort(tes)
|
||||
}
|
||||
|
||||
var defaultConcurrency = runtime.NumCPU()
|
||||
|
||||
type commitInfo struct {
|
||||
entryName string
|
||||
infos []interface{}
|
||||
@@ -136,7 +138,7 @@ func (tes Entries) GetCommitsInfoWithCustomConcurrency(commit *Commit, treePath
|
||||
}
|
||||
|
||||
if maxConcurrency <= 0 {
|
||||
maxConcurrency = runtime.NumCPU()
|
||||
maxConcurrency = defaultConcurrency
|
||||
}
|
||||
|
||||
// Length of taskChan determines how many goroutines (subprocesses) can run at the same time.
|
||||
|
||||
Reference in New Issue
Block a user