removed excessive argument
This commit is contained in:
parent
6e5db089c8
commit
6dfa4873c2
@ -138,12 +138,9 @@ func (this *HooksExecutor) onFailure() error {
|
||||
return this.executeHooks(onFailure)
|
||||
}
|
||||
|
||||
func (this *HooksExecutor) onStatus(statusMessage string, elapsedSeconds int64) error {
|
||||
v := []string{
|
||||
fmt.Sprintf("GH_OST_STATUS='%s'", statusMessage),
|
||||
fmt.Sprintf("GH_OST_ELAPSED_SECONDS='%d'", elapsedSeconds),
|
||||
}
|
||||
return this.executeHooks(onStatus, v...)
|
||||
func (this *HooksExecutor) onStatus(statusMessage string) error {
|
||||
v := fmt.Sprintf("GH_OST_STATUS='%s'", statusMessage)
|
||||
return this.executeHooks(onStatus, v)
|
||||
}
|
||||
|
||||
func (this *HooksExecutor) onStopReplication() error {
|
||||
|
@ -1102,7 +1102,7 @@ func (this *Migrator) printStatus(rule PrintStatusRule, writers ...io.Writer) {
|
||||
fmt.Fprintln(w, status)
|
||||
|
||||
if elapsedSeconds%60 == 0 {
|
||||
this.hooksExecutor.onStatus(status, elapsedSeconds)
|
||||
this.hooksExecutor.onStatus(status)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user