Remove jobs from registry.Service
This makes `registry.Service` a first class type and does not use jobs to interact with this type. Signed-off-by: Michael Crosby <crosbymichael@gmail.com> Upstream-commit: 03d3d79b2b3f8b720fff2d649aff0ef791cff417 Component: engine
This commit is contained in:
@ -98,17 +98,13 @@ func mainDaemon() {
|
||||
logrus.Fatal(err)
|
||||
}
|
||||
|
||||
// load registry service
|
||||
if err := registry.NewService(registryCfg).Install(eng); err != nil {
|
||||
logrus.Fatal(err)
|
||||
}
|
||||
|
||||
registryService := registry.NewService(registryCfg)
|
||||
// load the daemon in the background so we can immediately start
|
||||
// the http api so that connections don't fail while the daemon
|
||||
// is booting
|
||||
daemonInitWait := make(chan error)
|
||||
go func() {
|
||||
d, err := daemon.NewDaemon(daemonCfg, eng)
|
||||
d, err := daemon.NewDaemon(daemonCfg, eng, registryService)
|
||||
if err != nil {
|
||||
daemonInitWait <- err
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user