recordError 记录错误
(err error)
| 456 | |
| 457 | // recordError 记录错误 |
| 458 | func (a *AgentActor) recordError(err error) { |
| 459 | a.mu.Lock() |
| 460 | defer a.mu.Unlock() |
| 461 | a.stats.Errors++ |
| 462 | a.lastError = err |
| 463 | } |
| 464 | |
| 465 | // Stats 获取统计信息 |
| 466 | func (a *AgentActor) Stats() *AgentActorStats { |
no outgoing calls
no test coverage detected