store: remove job.ImageType

It is not used.

We probably need it at some point to decide which worker to give which
job to.
This commit is contained in:
Lars Karlitski 2020-03-23 10:41:46 +01:00
parent 25e926bc36
commit 7594cb262e

View file

@ -54,7 +54,6 @@ type Job struct {
ImageBuildID int
Manifest *osbuild.Manifest
Targets []*target.Target
ImageType string
}
type SourceConfig struct {
@ -163,16 +162,11 @@ func New(stateDir *string) *Store {
// s.Composes[composeID] = compose
case common.IBWaiting:
// Push waiting composes back into the pending jobs queue
imageTypeCompat, exists := imgBuild.ImageType.ToCompatString()
if !exists {
panic("fatal error, image type tag should exist but does not")
}
s.pendingJobs <- Job{
ComposeID: composeID,
ImageBuildID: imgBuild.Id,
Manifest: imgBuild.Manifest,
Targets: imgBuild.Targets,
ImageType: imageTypeCompat,
}
}
}
@ -619,7 +613,6 @@ func (s *Store) PushCompose(distro distro.Distro, arch distro.Arch, imageType di
ImageBuildID: 0,
Manifest: manifestStruct,
Targets: targets,
ImageType: imageType.Name(),
}
return nil