features sets the given feature flags. See list of Feature constants above.
(flag int, enabled bool)
| 976 | |
| 977 | // features sets the given feature flags. See list of Feature constants above. |
| 978 | func features(flag int, enabled bool) EnvOption { |
| 979 | return func(e *Env) (*Env, error) { |
| 980 | e.ensureMutableFeatures() |
| 981 | e.features[flag] = enabled |
| 982 | return e, nil |
| 983 | } |
| 984 | } |
| 985 | |
| 986 | func setLimit(id limitID, limit int) EnvOption { |
| 987 | if limit < 0 { |
no test coverage detected