Skip to content

Commit

Permalink
fix: make sure sync builder is initialized to avoid nil pointer access
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
  • Loading branch information
bacherfl committed Dec 12, 2023
1 parent 63f86ea commit 60b719c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/pkg/subscriptions/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 60b719c

Please sign in to comment.