(m map[string]bool)
| 227 | } |
| 228 | |
| 229 | func cloneBoolMap(m map[string]bool) map[string]bool { |
| 230 | if m == nil { |
| 231 | return nil |
| 232 | } |
| 233 | out := make(map[string]bool, len(m)) |
| 234 | for k, v := range m { |
| 235 | out[k] = v |
| 236 | } |
| 237 | return out |
| 238 | } |
| 239 | |
| 240 | // beginInferLoad enforces reliability.overload: "reject" returns reject=true without consuming a slot; |
| 241 | // "degrade" allows the request and sets overloadDegrade when at/above the limit. QueueLimit <= 0 disables checks. |
no outgoing calls
no test coverage detected