MCPcopy Index your code
hub / github.com/InferCore/InferCore / cloneBoolMap

Function cloneBoolMap

internal/server/server.go:229–238  ·  view source on GitHub ↗
(m map[string]bool)

Source from the content-addressed store, hash-verified

227}
228
229func 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.

Callers 2

cachedBackendHealthMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected