Skip to content

Commit e101db8

Browse files
committed
undeprecate
1 parent 527d1b7 commit e101db8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

client.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,7 @@ func (c *Client) BulkIdentify(ctx context.Context, batch []*IdentityTraits) erro
221221
return nil
222222
}
223223

224-
// GetEnvironmentFlags evaluates and returns the feature flags, using the current environment as the evaluation context.
225-
//
226-
// Deprecated: Use [Client.GetFlags] instead.
224+
// GetEnvironmentFlags calls GetFlags for the default EvaluationContext.
227225
func (c *Client) GetEnvironmentFlags(ctx context.Context) (f Flags, err error) {
228226
if c.config.localEvaluation || c.config.offlineMode {
229227
f, err = c.getEnvironmentFlagsFromEnvironment()
@@ -233,9 +231,7 @@ func (c *Client) GetEnvironmentFlags(ctx context.Context) (f Flags, err error) {
233231
return f, err
234232
}
235233

236-
// GetIdentityFlags evaluates and returns the flags for an identity.
237-
//
238-
// Deprecated: Use GetFlags instead.
234+
// GetIdentityFlags calls GetFlags using this identifier and traits as the EvaluationContext.
239235
func (c *Client) GetIdentityFlags(ctx context.Context, identifier string, traits map[string]interface{}) (f Flags, err error) {
240236
if c.config.offlineMode && c.offlineHandler != nil || c.config.localEvaluation {
241237
f, err = c.getIdentityFlagsFromEnvironment(identifier, traits)

0 commit comments

Comments
 (0)