store: drop the distro registry

This was now unused.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2020-03-22 18:32:19 +01:00
parent 0656fdcd38
commit 1345ca77fd
5 changed files with 16 additions and 34 deletions

View file

@ -42,11 +42,10 @@ type Store struct {
BlueprintsChanges map[string]map[string]blueprint.Change `json:"changes"`
BlueprintsCommits map[string][]string `json:"commits"`
mu sync.RWMutex // protects all fields
pendingJobs chan Job
stateChannel chan []byte
distroRegistry distro.Registry
stateDir *string
mu sync.RWMutex // protects all fields
pendingJobs chan Job
stateChannel chan []byte
stateDir *string
}
// A Job contains the information about a compose a worker needs to process it.
@ -107,7 +106,7 @@ func (e *NoLocalTargetError) Error() string {
return e.message
}
func New(stateDir *string, distroRegistryArg distro.Registry) *Store {
func New(stateDir *string) *Store {
var s Store
if stateDir != nil {
@ -141,7 +140,6 @@ func New(stateDir *string, distroRegistryArg distro.Registry) *Store {
}
s.pendingJobs = make(chan Job, 200)
s.distroRegistry = distroRegistryArg
s.stateDir = stateDir
if s.Blueprints == nil {