Browse Source

fix: incorrect op for newWorkConn (#3244)

(cherry picked from commit 53b6bbf0b14ab632dc89416d7fffa9b1d0887c0a)
Craig O'Donnell 2 years ago
parent
commit
b03f0ad1e6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/plugin/server/manager.go

+ 1 - 1
pkg/plugin/server/manager.go

@@ -211,7 +211,7 @@ func (m *Manager) NewWorkConn(content *NewWorkConnContent) (*NewWorkConnContent,
 	ctx = NewReqidContext(ctx, reqid)
 	ctx = NewReqidContext(ctx, reqid)
 
 
 	for _, p := range m.newWorkConnPlugins {
 	for _, p := range m.newWorkConnPlugins {
-		res, retContent, err = p.Handle(ctx, OpPing, *content)
+		res, retContent, err = p.Handle(ctx, OpNewWorkConn, *content)
 		if err != nil {
 		if err != nil {
 			xl.Warn("send NewWorkConn request to plugin [%s] error: %v", p.Name(), err)
 			xl.Warn("send NewWorkConn request to plugin [%s] error: %v", p.Name(), err)
 			return nil, errors.New("send NewWorkConn request to plugin error")
 			return nil, errors.New("send NewWorkConn request to plugin error")