|
func (c *Client) getFlagInternal(featureFlagKey string) data.FeatureFlag { |
|
flagId := data.NewFeatureFlagIdByEnvSecret(c.EnvSecret, featureFlagKey).GetFeatureFlagId() |
|
item := c.dataStorage.Get(data.FeaturesCat, flagId) |
every time we get feature flag from dataStorage, we have to decode the envSecret, which is unreasonable.
ffc-go-sdk/ffc/ffc_client.go
Lines 406 to 408 in f0961dd
every time we get feature flag from dataStorage, we have to decode the envSecret, which is unreasonable.