Skip to content

Commit

Permalink
cluster/manager: fix the typo
Browse files Browse the repository at this point in the history
  • Loading branch information
9547 committed Jun 23, 2021
1 parent f8ae7b4 commit 15d36d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions pkg/cluster/manager/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
"path/filepath"
"strings"

"github.com/pingcap/tiup/pkg/cluster/executor"
operator "github.com/pingcap/tiup/pkg/cluster/operation"
"github.com/pingcap/tiup/pkg/cluster/spec"
"github.com/pingcap/tiup/pkg/cluster/task"
Expand Down Expand Up @@ -174,8 +173,6 @@ func buildScaleOutTask(
base.User,
gOpt.SSHTimeout,
gOpt.OptTimeout,
gOpt.SSHType,
topo.BaseTopo().GlobalOptions.SSHType,
gOpt.SSHProxyHost,
gOpt.SSHProxyPort,
gOpt.SSHProxyUser,
Expand Down Expand Up @@ -460,7 +457,6 @@ func buildRefreshMonitoredConfigTasks(
globalOptions spec.GlobalOptions,
monitoredOptions *spec.MonitoredOptions,
sshTimeout, exeTimeout uint64,
sshType executor.SSHType,
gOpt operator.Options,
p *tui.SSHConnectionProps,
) []*task.StepDisplay {
Expand Down Expand Up @@ -489,7 +485,6 @@ func buildRefreshMonitoredConfigTasks(
globalOptions.User,
sshTimeout,
exeTimeout,
sshType,
gOpt.SSHProxyHost,
gOpt.SSHProxyPort,
gOpt.SSHProxyUser,
Expand Down
4 changes: 2 additions & 2 deletions pkg/cluster/manager/reload.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ func (m *Manager) Reload(name string, gOpt operator.Options, skipRestart, skipCo
return err
}

sshTimeout := opt.SSHTimeout
exeTimeout := opt.OptTimeout
sshTimeout := gOpt.SSHTimeout
exeTimeout := gOpt.OptTimeout

metadata, err := m.meta(name)
if err != nil {
Expand Down

0 comments on commit 15d36d5

Please sign in to comment.