File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,11 +28,6 @@ import (
2828// globally opt-out of any experimental features in Compose.
2929const envComposeExperimentalGlobal = "COMPOSE_EXPERIMENTAL"
3030
31- // FeatureFlagClient queries feature flag state from local configuration.
32- type FeatureFlagClient interface {
33- FeatureFlags (ctx context.Context ) (desktop.FeatureFlagResponse , error )
34- }
35-
3631// State of experiments (enabled/disabled) based on environment and local config.
3732type State struct {
3833 // active is false if experiments have been opted-out of globally.
@@ -52,7 +47,7 @@ func NewState() *State {
5247 }
5348}
5449
55- func (s * State ) Load (ctx context.Context , client FeatureFlagClient ) error {
50+ func (s * State ) Load (ctx context.Context , client * desktop. Client ) error {
5651 if ! s .active {
5752 // user opted out of experiments globally, no need to load state from
5853 // Desktop
You can’t perform that action at this time.
0 commit comments