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

Method fusePlugin

internal/pluginhost/adapters.go:1240–1249  ·  view source on GitHub ↗
(id, method string, recovered any)

Source from the content-addressed store, hash-verified

1238}
1239
1240func (h *Host) fusePlugin(id, method string, recovered any) {
1241 if h == nil {
1242 return
1243 }
1244 h.mu.Lock()
1245 h.fused[id] = fmt.Sprintf("%s panic: %v", method, recovered)
1246 h.mu.Unlock()
1247 thinking.UnregisterPluginProviders(id)
1248 log.WithField("plugin_id", id).WithField("method", method).Errorf("pluginhost: plugin panic recovered: %v\n%s", recovered, debug.Stack())
1249}
1250
1251func (h *Host) isPluginFused(id string) bool {
1252 if h == nil {

Callers 15

safePluginCallMethod · 0.95
callSchedulerMethod · 0.95
callModelRegistrarMethod · 0.95
callModelsForAuthMethod · 0.95
callRequestNormalizerMethod · 0.95
callRequestTranslatorMethod · 0.95

Calls 1

Tested by

no test coverage detected