Skip to content

Commit

Permalink
Add comment about todo
Browse files Browse the repository at this point in the history
  • Loading branch information
keelerm84 committed Jan 7, 2025
1 parent 1816b10 commit 4ee1580
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/datasourcev2/polling_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ func (pp *PollingProcessor) Fetch(ctx context.Context) (*subsystems.Basis, error
func (pp *PollingProcessor) Sync(closeWhenReady chan<- struct{}) {
pp.loggers.Infof("Starting LaunchDarkly polling with interval: %+v", pp.pollInterval)

// This process has a shared method serving both as an initializer and a synchronizer.
//
// The initializers currently provide a cancellable context throughout
// their call stack. Once we have done the same with the synchronizers, we
// can the TODO context with a real one.
ctx := context.TODO()

ticker := newTickerWithInitialTick(pp.pollInterval)
Expand Down

0 comments on commit 4ee1580

Please sign in to comment.