Skip to content

Commit 6dfa487

Browse files
author
Shlomi Noach
committed
removed excessive argument
1 parent 6e5db08 commit 6dfa487

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

go/logic/hooks.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,9 @@ func (this *HooksExecutor) onFailure() error {
138138
return this.executeHooks(onFailure)
139139
}
140140

141-
func (this *HooksExecutor) onStatus(statusMessage string, elapsedSeconds int64) error {
142-
v := []string{
143-
fmt.Sprintf("GH_OST_STATUS='%s'", statusMessage),
144-
fmt.Sprintf("GH_OST_ELAPSED_SECONDS='%d'", elapsedSeconds),
145-
}
146-
return this.executeHooks(onStatus, v...)
141+
func (this *HooksExecutor) onStatus(statusMessage string) error {
142+
v := fmt.Sprintf("GH_OST_STATUS='%s'", statusMessage)
143+
return this.executeHooks(onStatus, v)
147144
}
148145

149146
func (this *HooksExecutor) onStopReplication() error {

go/logic/migrator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ func (this *Migrator) printStatus(rule PrintStatusRule, writers ...io.Writer) {
11021102
fmt.Fprintln(w, status)
11031103

11041104
if elapsedSeconds%60 == 0 {
1105-
this.hooksExecutor.onStatus(status, elapsedSeconds)
1105+
this.hooksExecutor.onStatus(status)
11061106
}
11071107
}
11081108

0 commit comments

Comments
 (0)