From b2eba874e9a5e3aa3fa8539b30908e6977af5d9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Duffeck?= Date: Tue, 24 Oct 2023 10:10:54 +0200 Subject: [PATCH] Move ocm to the "delayed" group so that it can always reach the gateway --- ocis/pkg/runtime/service/service.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ocis/pkg/runtime/service/service.go b/ocis/pkg/runtime/service/service.go index f240def010..ed59185848 100644 --- a/ocis/pkg/runtime/service/service.go +++ b/ocis/pkg/runtime/service/service.go @@ -273,11 +273,6 @@ func NewService(options ...Option) (*Service, error) { cfg.Webfinger.Commons = cfg.Commons return webfinger.Execute(cfg.Webfinger) }) - reg(opts.Config.OCM.Service.Name, func(ctx context.Context, cfg *ociscfg.Config) error { - cfg.OCM.Context = ctx - cfg.OCM.Commons = cfg.Commons - return ocm.Execute(cfg.OCM) - }) // populate optional services areg := func(name string, exec func(context.Context, *ociscfg.Config) error) { @@ -323,6 +318,11 @@ func NewService(options ...Option) (*Service, error) { cfg.SSE.Commons = cfg.Commons return sse.Execute(cfg.SSE) }) + dreg(opts.Config.OCM.Service.Name, func(ctx context.Context, cfg *ociscfg.Config) error { + cfg.OCM.Context = ctx + cfg.OCM.Commons = cfg.Commons + return ocm.Execute(cfg.OCM) + }) return s, nil }