From 60b719c7f1a8bd4c9b57aa3a5ecad0e1195bf6a7 Mon Sep 17 00:00:00 2001 From: Florian Bacher Date: Tue, 12 Dec 2023 10:38:43 +0100 Subject: [PATCH] fix: make sure sync builder is initialized to avoid nil pointer access Signed-off-by: Florian Bacher --- core/pkg/subscriptions/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/pkg/subscriptions/manager.go b/core/pkg/subscriptions/manager.go index 0f009e330..b6a85a679 100644 --- a/core/pkg/subscriptions/manager.go +++ b/core/pkg/subscriptions/manager.go @@ -54,7 +54,7 @@ func NewManager(ctx context.Context, logger *logger.Logger) *Coordinator { multiplexers: map[string]*multiplexer{}, logger: logger, mu: &sync.RWMutex{}, - syncBuilder: &syncbuilder.SyncBuilder{}, + syncBuilder: syncbuilder.NewSyncBuilder(), } go mgr.cleanup() return &mgr