diff --git a/cluster/router/healthcheck/default_health_check.go b/cluster/router/healthcheck/default_health_check.go index a59e58ff61e3602a7581388ca06e6955ea19f436..f1ae9c20a222b463898db4498764caf99d95e3a4 100644 --- a/cluster/router/healthcheck/default_health_check.go +++ b/cluster/router/healthcheck/default_health_check.go @@ -48,7 +48,7 @@ type DefaultHealthChecker struct { // IsHealthy evaluates the healthy state on the given Invoker based on the number of successive bad request // and the current active request func (c *DefaultHealthChecker) IsHealthy(invoker protocol.Invoker) bool { - if !protocol.GetInvokerHealthyStatus(invoker){ + if !protocol.GetInvokerHealthyStatus(invoker) { return false } @@ -96,7 +96,6 @@ func (c *DefaultHealthChecker) getCircuitBreakerSleepWindowTime(status *protocol return int64(sleepWindow) } - // GetRequestSuccessiveFailureThreshold return the requestSuccessiveFailureThreshold bound to this DefaultHealthChecker func (c *DefaultHealthChecker) GetRequestSuccessiveFailureThreshold() int32 { return c.requestSuccessiveFailureThreshold diff --git a/common/constant/key.go b/common/constant/key.go index b10d12d7981d8734610a587a3ffaa36b03dda0e7..786c6ed016e60c103900c355ebf00704246a94dd 100644 --- a/common/constant/key.go +++ b/common/constant/key.go @@ -90,7 +90,6 @@ const ( RETRY_TIMES_KEY = "retry.times" CYCLE_REPORT_KEY = "cycle.report" DEFAULT_BLACK_LIST_RECOVER_BLOCK = 10 - ) const ( diff --git a/registry/zookeeper/registry.go b/registry/zookeeper/registry.go index 76fc052b6f471c776b9740e480be5023f494633e..fe492c2b12712e0935ccd6fdd264e0fe8f24e213 100644 --- a/registry/zookeeper/registry.go +++ b/registry/zookeeper/registry.go @@ -212,7 +212,7 @@ func (r *zkRegistry) registerTempZookeeperNode(root string, node string) error { r.cltLock.Lock() defer r.cltLock.Unlock() - if r.client == nil{ + if r.client == nil { return perrors.WithStack(perrors.New("zk client already been closed")) } err = r.client.Create(root)