Merge pull request #48953 from thaJeztah/carry_buildkit_init_timeout

Remove buildkit init timeout
This commit is contained in:
Sebastiaan van Stijn
2024-11-27 10:23:24 +01:00
committed by GitHub

View File

@@ -294,16 +294,13 @@ func (cli *daemonCLI) start(ctx context.Context) (err error) {
log.G(ctx).Info("Daemon has completed initialization")
routerCtx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()
// Get a the current daemon config, because the daemon sets up config
// during initialization. We cannot user the cli.Config for that reason,
// as that only holds the config that was set by the user.
//
// FIXME(thaJeztah): better separate runtime and config data?
daemonCfg := d.Config()
routerOpts, err := newRouterOptions(routerCtx, &daemonCfg, d, c)
routerOpts, err := newRouterOptions(ctx, &daemonCfg, d, c)
if err != nil {
return err
}