Skip to content

Commit

Permalink
Remove duplicated line (uber#5328)
Browse files Browse the repository at this point in the history
  • Loading branch information
mantas-sidlauskas authored Jul 25, 2023
1 parent 47f83ed commit 9b047cb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions common/domain/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -697,10 +697,6 @@ func (d *handlerImpl) UpdateIsolationGroups(
configVersion := currentDomainConfig.ConfigVersion
lastUpdatedTime := time.Unix(0, currentDomainConfig.LastUpdatedTime)

if lastUpdatedTime.Add(d.config.FailoverCoolDown(currentDomainConfig.Info.Name)).After(d.timeSource.Now()) {
return errDomainUpdateTooFrequent
}

// Check the failover cool down time
if lastUpdatedTime.Add(d.config.FailoverCoolDown(currentDomainConfig.Info.Name)).After(d.timeSource.Now()) {
return errDomainUpdateTooFrequent
Expand Down

0 comments on commit 9b047cb

Please sign in to comment.