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

Function safeInvoke

sdk/cliproxy/usage/manager.go:304–311  ·  view source on GitHub ↗
(plugin Plugin, ctx context.Context, record Record)

Source from the content-addressed store, hash-verified

302}
303
304func safeInvoke(plugin Plugin, ctx context.Context, record Record) {
305 defer func() {
306 if r := recover(); r != nil {
307 log.Errorf("usage: plugin panic recovered: %v", r)
308 }
309 }()
310 plugin.HandleUsage(ctx, record)
311}
312
313var defaultManager = NewManager(512)
314

Callers 1

dispatchMethod · 0.85

Calls 1

HandleUsageMethod · 0.65

Tested by

no test coverage detected