MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / publishErrorEvent

Method publishErrorEvent

sdk/cliproxy/auth/error_events.go:50–59  ·  view source on GitHub ↗
(result Result, authSnapshot *Auth)

Source from the content-addressed store, hash-verified

48}
49
50func (m *Manager) publishErrorEvent(result Result, authSnapshot *Auth) {
51 if m == nil || result.Success || authSnapshot == nil || m.HomeEnabled() {
52 return
53 }
54 payload, ok := buildErrorEventPayload(result, authSnapshot)
55 if !ok {
56 return
57 }
58 redisqueue.EnqueueError(payload)
59}
60
61func buildErrorEventPayload(result Result, authSnapshot *Auth) ([]byte, bool) {
62 if authSnapshot == nil || result.Success {

Callers 1

MarkResultMethod · 0.95

Calls 3

HomeEnabledMethod · 0.95
EnqueueErrorFunction · 0.92
buildErrorEventPayloadFunction · 0.85

Tested by

no test coverage detected