MCPcopy Create free account
hub / github.com/astercloud/aster / Reset

Method Reset

pkg/middleware/simplicity_checker.go:303–309  ·  view source on GitHub ↗

Reset 重置会话统计

()

Source from the content-addressed store, hash-verified

301
302// Reset 重置会话统计
303func (m *SimplicityCheckerMiddleware) Reset() {
304 m.mu.Lock()
305 defer m.mu.Unlock()
306 m.helperCount = 0
307 m.interfaceCount = 0
308 m.warningsEmitted = make([]SimplicityWarning, 0)
309}
310
311// OnAgentStart Agent 启动时重置统计
312func (m *SimplicityCheckerMiddleware) OnAgentStart(ctx context.Context, agentID string) error {

Callers 2

OnAgentStartMethod · 0.95

Calls

no outgoing calls

Tested by 1