From 79cf2db8084e0a20789a50755813922928c7caa7 Mon Sep 17 00:00:00 2001 From: vytautas Date: Wed, 26 Jan 2022 13:44:42 +0000 Subject: [PATCH] Fix error message instead --- common/domain/handler.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/domain/handler.go b/common/domain/handler.go index f158c6d6491..c242792593c 100644 --- a/common/domain/handler.go +++ b/common/domain/handler.go @@ -43,7 +43,7 @@ import ( ) var ( - errFailoverTooFrequent = &types.ServiceBusyError{Message: "The domain failovers too frequent."} + errDomainUpdateTooFrequent = &types.ServiceBusyError{Message: "Domain update too frequent."} ) type ( @@ -510,8 +510,8 @@ func (d *handlerImpl) UpdateDomain( if configurationChanged || activeClusterChanged { now := d.timeSource.Now() // Check the failover cool down time - if activeClusterChanged && lastUpdatedTime.Add(d.config.FailoverCoolDown(info.Name)).After(now) { - return nil, errFailoverTooFrequent + if lastUpdatedTime.Add(d.config.FailoverCoolDown(info.Name)).After(now) { + return nil, errDomainUpdateTooFrequent } // set the versions