fix: incorrect op for newWorkConn

(cherry picked from commit 53b6bbf0b14ab632dc89416d7fffa9b1d0887c0a)
This commit is contained in:
Craig O'Donnell 2023-01-08 20:32:07 -05:00
parent 804f2910fd
commit 43d89c0efe

View File

@ -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")