features sets the given feature flags. See list of Feature constants above.
(flag int, enabled bool)
| 916 | |
| 917 | // features sets the given feature flags. See list of Feature constants above. |
| 918 | func features(flag int, enabled bool) EnvOption { |
| 919 | return func(e *Env) (*Env, error) { |
| 920 | e.features[flag] = enabled |
| 921 | return e, nil |
| 922 | } |
| 923 | } |
| 924 | |
| 925 | func setLimit(id limitID, limit int) EnvOption { |
| 926 | if limit < 0 { |
no outgoing calls
no test coverage detected