Skip to content

Commit

Permalink
Cooldown error should only affect failovers
Browse files Browse the repository at this point in the history
  • Loading branch information
vytautas-karpavicius committed Jan 26, 2022
1 parent 99ace7a commit a6899d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/domain/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ func (d *handlerImpl) UpdateDomain(
if configurationChanged || activeClusterChanged {
now := d.timeSource.Now()
// Check the failover cool down time
if lastUpdatedTime.Add(d.config.FailoverCoolDown(info.Name)).After(now) {
if activeClusterChanged && lastUpdatedTime.Add(d.config.FailoverCoolDown(info.Name)).After(now) {
return nil, errFailoverTooFrequent
}

Expand Down

0 comments on commit a6899d7

Please sign in to comment.