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
#1076)

This is a follow up to the latest refactoring PR #1044 to avoid a nil
pointer access when attempting to read from a kubernetes sync source

Signed-off-by: Florian Bacher <[email protected]>
  • Loading branch information
bacherfl authored Dec 12, 2023
1 parent 63f86ea commit ebcd616
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 ebcd616

Please sign in to comment.