GetOverridesForUser returns the per-tenant limits with overrides.
(userID string)
| 1164 | |
| 1165 | // GetOverridesForUser returns the per-tenant limits with overrides. |
| 1166 | func (o *Overrides) GetOverridesForUser(userID string) *Limits { |
| 1167 | if o.tenantLimits != nil { |
| 1168 | l := o.tenantLimits.ByUserID(userID) |
| 1169 | if l != nil { |
| 1170 | return l |
| 1171 | } |
| 1172 | } |
| 1173 | return o.defaultLimits |
| 1174 | } |
| 1175 | |
| 1176 | // SmallestPositiveIntPerTenant is returning the minimal positive value of the |
| 1177 | // supplied limit function for all given tenants. |
no test coverage detected