Reset 重置会话统计
()
| 301 | |
| 302 | // Reset 重置会话统计 |
| 303 | func (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 启动时重置统计 |
| 312 | func (m *SimplicityCheckerMiddleware) OnAgentStart(ctx context.Context, agentID string) error { |
no outgoing calls