make queueSignal send non-blocking to prevent goroutine leak
This commit is contained in:
@@ -136,7 +136,10 @@ func (b *BuildManager) buildQueue(ctx context.Context, queue []*ProtoPackage) er
|
||||
}
|
||||
doneQLock.Unlock()
|
||||
b.buildingLock.Unlock()
|
||||
b.queueSignal <- struct{}{}
|
||||
select {
|
||||
case b.queueSignal <- struct{}{}:
|
||||
default:
|
||||
}
|
||||
}(pkg)
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user