MCPcopy Create free account
hub / github.com/Cyinx/einx / handle_component_error

Method handle_component_error

module/module.go:280–292  ·  view source on GitHub ↗
(event_msg EventMsg)

Source from the content-addressed store, hash-verified

278}
279
280func (this *module) handle_component_error(event_msg EventMsg) {
281 com_event := event_msg.(*ComponentEventMsg)
282 c := com_event.Sender
283 if mgr, ok := this.commgr_map[c.GetID()]; ok == true {
284 ctx := this.context
285 ctx.c = c
286 ctx.t = com_event.Attach
287 mgr.OnComponentError(ctx, com_event.Err)
288 ctx.Reset()
289 return
290 }
291 slog.LogError("component", "module[%v] not register component[%v] manager cant handle error:%v", this.name, c.GetID(), com_event.Attach)
292}
293
294func (this *module) handle_agent_enter(event_msg EventMsg) {
295 ses_event := event_msg.(*SessionEventMsg)

Callers 1

handle_eventMethod · 0.95

Calls 3

OnComponentErrorMethod · 0.80
GetIDMethod · 0.65
ResetMethod · 0.65

Tested by

no test coverage detected