store: drop pendingJobs

This is no longer used. Drop the field and the type definition.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2020-05-09 16:09:34 +02:00
parent 27e52a9755
commit 571a21c3ac
2 changed files with 3 additions and 14 deletions

View file

@ -44,18 +44,9 @@ type Store struct {
blueprintsChanges map[string]map[string]blueprint.Change
blueprintsCommits map[string][]string
mu sync.RWMutex // protects all fields
pendingJobs chan Job
stateDir *string
db *jsondb.JSONDatabase
}
// A Job contains the information about a compose a worker needs to process it.
type Job struct {
ComposeID uuid.UUID
ImageBuildID int
Manifest *osbuild.Manifest
Targets []*target.Target
mu sync.RWMutex // protects all fields
stateDir *string
db *jsondb.JSONDatabase
}
type SourceConfig struct {
@ -102,7 +93,6 @@ func New(stateDir *string) *Store {
store := newStoreFromV0(storeStruct)
store.pendingJobs = make(chan Job, 200)
store.stateDir = stateDir
store.db = db