forked from ALHP/ALHP.GO
removed batch-limits
This commit is contained in:
16
main.go
16
main.go
@@ -367,17 +367,6 @@ func (b *BuildManager) parseWorker() {
|
||||
}
|
||||
|
||||
b.parseWG.Done()
|
||||
|
||||
b.queuedLock.RLock()
|
||||
if b.queued[pkg.March] >= conf.Build.Batch {
|
||||
b.queuedLock.RUnlock()
|
||||
continue
|
||||
}
|
||||
b.queuedLock.RUnlock()
|
||||
b.queuedLock.Lock()
|
||||
b.queued[pkg.March]++
|
||||
b.queuedLock.Unlock()
|
||||
|
||||
b.build[pkg.March] <- pkg
|
||||
}
|
||||
}
|
||||
@@ -663,11 +652,6 @@ func (b *BuildManager) syncWorker() {
|
||||
check(err)
|
||||
b.alpmMutex.Unlock()
|
||||
|
||||
// clear batch limits
|
||||
b.queuedLock.Lock()
|
||||
b.queued = map[string]int{}
|
||||
b.queuedLock.Unlock()
|
||||
|
||||
pkgBuilds, err := Glob(filepath.Join(conf.Basedir.Work, upstreamDir, "/**/PKGBUILD"))
|
||||
check(err)
|
||||
|
||||
|
3
utils.go
3
utils.go
@@ -73,8 +73,6 @@ type BuildManager struct {
|
||||
buildProcesses []*os.Process
|
||||
buildProcMutex sync.RWMutex
|
||||
alpmMutex sync.RWMutex
|
||||
queued map[string]int
|
||||
queuedLock sync.RWMutex
|
||||
}
|
||||
|
||||
type Conf struct {
|
||||
@@ -92,7 +90,6 @@ type Conf struct {
|
||||
Worker int
|
||||
Makej int
|
||||
Checks bool
|
||||
Batch int
|
||||
}
|
||||
Logging struct {
|
||||
Level string
|
||||
|
Reference in New Issue
Block a user