From b03f0ad1e681f72e2067e31d60d25ad09ee2f61a Mon Sep 17 00:00:00 2001 From: Craig O'Donnell Date: Sun, 8 Jan 2023 21:34:09 -0500 Subject: [PATCH] fix: incorrect op for newWorkConn (#3244) (cherry picked from commit 53b6bbf0b14ab632dc89416d7fffa9b1d0887c0a) --- pkg/plugin/server/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/plugin/server/manager.go b/pkg/plugin/server/manager.go index 5a8a309..516f407 100644 --- a/pkg/plugin/server/manager.go +++ b/pkg/plugin/server/manager.go @@ -211,7 +211,7 @@ func (m *Manager) NewWorkConn(content *NewWorkConnContent) (*NewWorkConnContent, ctx = NewReqidContext(ctx, reqid) for _, p := range m.newWorkConnPlugins { - res, retContent, err = p.Handle(ctx, OpPing, *content) + res, retContent, err = p.Handle(ctx, OpNewWorkConn, *content) if err != nil { xl.Warn("send NewWorkConn request to plugin [%s] error: %v", p.Name(), err) return nil, errors.New("send NewWorkConn request to plugin error")