MCPcopy Index your code
hub / github.com/Monibuca/engine / checkRunCost

Method checkRunCost

stream.go:436–440  ·  view source on GitHub ↗
(timeStart time.Time, timeOutInfo zap.Field)

Source from the content-addressed store, hash-verified

434}
435
436func (s *Stream) checkRunCost(timeStart time.Time, timeOutInfo zap.Field) {
437 if cost := time.Since(timeStart); cost > 100*time.Millisecond {
438 s.Warn("run timeout", timeOutInfo, zap.Duration("cost", cost))
439 }
440}
441
442// 流状态处理中枢,包括接收订阅发布指令等
443func (s *Stream) run() {

Callers 1

runMethod · 0.95

Calls 1

WarnMethod · 0.65

Tested by

no test coverage detected