Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -397,12 +397,6 @@ func (i MyFeatureProvider) Init(evaluationContext openfeature.EvaluationContext)
// code to initialize your provider
}

// Status expose the status of the provider
func (i MyFeatureProvider) Status() openfeature.State {
// The state is typically set during initialization.
return openfeature.ReadyState
}

// Shutdown define the shutdown operation of the provider
func (i MyFeatureProvider) Shutdown() {
// code to shutdown your provider
Expand Down
2 changes: 1 addition & 1 deletion openfeature/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@ func TestRequirement_1_7_1(t *testing.T) {

var clientI any = client
if _, ok := clientI.(requirements); !ok {
t.Fatal("client des not define a status accessor which indicates the readiness of the associated provider")
t.Fatal("client does not define a status accessor which indicates the readiness of the associated provider")
}

TestRequirement_5_3_5(t)
Expand Down
5 changes: 0 additions & 5 deletions openfeature/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ type Tracker interface {
}

// NoopStateHandler is a noop StateHandler implementation
// Status always set to ReadyState to comply with specification
type NoopStateHandler struct{}

func (s *NoopStateHandler) Init(e EvaluationContext) error {
Expand All @@ -85,10 +84,6 @@ func (s *NoopStateHandler) Shutdown() {
// NOOP
}

func (s *NoopStateHandler) Status() State {
return ReadyState
}

// Eventing

// EventHandler is the eventing contract enforced for FeatureProvider
Expand Down
Loading