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

Struct UnstableActor

examples/actor/main.go:150–155  ·  view source on GitHub ↗

UnstableActor 不稳定的 Actor - 模拟故障

Source from the content-addressed store, hash-verified

148
149// UnstableActor 不稳定的 Actor - 模拟故障
150type UnstableActor struct {
151 name string
152 failCount int
153 maxFails int
154 recovered bool
155}
156
157func (a *UnstableActor) Receive(ctx *actor.Context, msg actor.Message) {
158 switch m := msg.(type) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected