Skip to content

Commit

Permalink
Update error message for too frequent domain updates (uber#4711)
Browse files Browse the repository at this point in the history
  • Loading branch information
vytautas-karpavicius committed Jan 27, 2022
1 parent 45bc726 commit e27ed80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/domain/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import (
)

var (
errFailoverTooFrequent = &types.ServiceBusyError{Message: "The domain failovers too frequent."}
errDomainUpdateTooFrequent = &types.ServiceBusyError{Message: "Domain update too frequent."}
)

type (
Expand Down Expand Up @@ -511,7 +511,7 @@ func (d *handlerImpl) UpdateDomain(
now := d.timeSource.Now()
// Check the failover cool down time
if lastUpdatedTime.Add(d.config.FailoverCoolDown(info.Name)).After(now) {
return nil, errFailoverTooFrequent
return nil, errDomainUpdateTooFrequent
}

// set the versions
Expand Down

0 comments on commit e27ed80

Please sign in to comment.