Skip to content

Commit

Permalink
fix Infof message time.duration->seconds (#120)
Browse files Browse the repository at this point in the history
* fix Infof message time.duration->seconds

* fix Infof message time.duration->seconds

---------

Co-authored-by: suetin <[email protected]>
  • Loading branch information
moridin26 and suetin authored Jul 26, 2024
1 parent 70619c9 commit 5e9d969
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/app/async.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ func (app *App) CheckAsyncSwitchAllowed(node *mysql.Node, switchover *Switchover
return false
}
if time.Duration(delay)*time.Second < app.config.AsyncAllowedLag {
app.logger.Infof("async allowed lag is %d and current lag on host %s is %d, so we don't wait for catch up any more",
app.config.AsyncAllowedLag, node.Host(), delay)
app.logger.Infof("async allowed lag is %f seconds and current lag on host %s is %d, so we don't wait for catch up any more",
app.config.AsyncAllowedLag.Seconds(), node.Host(), delay)
return true
}
}
Expand Down

0 comments on commit 5e9d969

Please sign in to comment.