Skip to content

Commit

Permalink
commit-message: fix function name
Browse files Browse the repository at this point in the history
  • Loading branch information
WizardXiao committed May 16, 2022
1 parent fd8c8f9 commit dd14d08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dm/dm/config/task_converters.go
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ func OpenAPIStartTaskReqToTaskCliArgs(req openapi.StartTaskRequest) (*TaskCliArg
return cliArgs, nil
}

func OpenAPIStopTasReqToTaskCliArgs(req openapi.StopTaskRequest) (*TaskCliArgs, error) {
func OpenAPIStopTaskReqToTaskCliArgs(req openapi.StopTaskRequest) (*TaskCliArgs, error) {
if req.TimeoutDuration == nil {
return nil, nil
}
Expand Down
2 changes: 1 addition & 1 deletion dm/dm/master/openapi_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ func (s *Server) stopTask(ctx context.Context, taskName string, req openapi.Stop
req.SourceNameList = &sourceNameList
}
// handle task cli args
cliArgs, err := config.OpenAPIStopTasReqToTaskCliArgs(req)
cliArgs, err := config.OpenAPIStopTaskReqToTaskCliArgs(req)
if err != nil {
return terror.Annotate(err, "while converting task command line arguments")
}
Expand Down

0 comments on commit dd14d08

Please sign in to comment.