Skip to content

Commit

Permalink
fix Infof message time.duration->seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
suetin committed Jul 26, 2024
1 parent 52ac37a commit 8a71bd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app/async.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ 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 seconds and current lag on host %s is %d, so we don't wait for catch up any more",
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 8a71bd3

Please sign in to comment.