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

Method handleGetStatus

pkg/agent/actor.go:432–441  ·  view source on GitHub ↗

handleGetStatus 处理获取状态

(_ *actor.Context, msg *GetStatusMsg)

Source from the content-addressed store, hash-verified

430
431// handleGetStatus 处理获取状态
432func (a *AgentActor) handleGetStatus(_ *actor.Context, msg *GetStatusMsg) {
433 status := a.agent.Status()
434
435 if msg.ReplyTo != nil {
436 select {
437 case msg.ReplyTo <- status:
438 default:
439 }
440 }
441}
442
443// handleStop 处理停止
444func (a *AgentActor) handleStop() {

Callers 1

ReceiveMethod · 0.95

Calls 1

StatusMethod · 0.45

Tested by

no test coverage detected