Skip to content

Commit

Permalink
linters fix
Browse files Browse the repository at this point in the history
  • Loading branch information
suetin committed Jun 17, 2024
1 parent f2046c4 commit 036e3f5
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 @@ -20,7 +20,7 @@ func (app *App) CheckAsyncSwitchAllowed(node *mysql.Node, switchover *Switchover
app.logger.Errorf("failed to calc mdb repl mon ts: %v", err)
return false
}
if time.Duration(delay) * time.Second < app.config.AsyncAllowedLag {
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)
return true
Expand Down

0 comments on commit 036e3f5

Please sign in to comment.