MCPcopy Create free account
hub / github.com/InferCore/InferCore / timeoutSpikeActive

Method timeoutSpikeActive

internal/server/server.go:863–870  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

861}
862
863func (s *Server) timeoutSpikeActive() bool {
864 s.timeoutSpikeMu.Lock()
865 defer s.timeoutSpikeMu.Unlock()
866 if time.Since(s.timeoutSpikeWin) > time.Minute {
867 return false
868 }
869 return s.timeoutSpikeCnt >= minTimeoutsPerMinuteForSpike
870}
871
872type statusRecorder struct {
873 http.ResponseWriter

Callers 2

initPrometheusMetricsMethod · 0.95
CurrentSignalsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected