Skip to content

Commit

Permalink
Use buffered channel to prevent blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Apr 11, 2023
1 parent 00b781a commit b0b55c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/composable/providers/host/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func ContextProviderBuilder(log *logger.Logger, c *config.Config, _ bool) (corec
p.CheckInterval = DefaultCheckInterval
}

p.fqdnFFChangeCh = make(chan struct{})
p.fqdnFFChangeCh = make(chan struct{}, 1)
err := features.AddFQDNOnChangeCallback(
p.onFQDNFeatureFlagChange,
fqdnFeatureFlagCallbackID,
Expand Down

0 comments on commit b0b55c3

Please sign in to comment.