Skip to content

Commit

Permalink
fix: go fmt project
Browse files Browse the repository at this point in the history
  • Loading branch information
李志信 authored and 李志信 committed Dec 29, 2020
1 parent 4ae1b41 commit a9b1e1c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion cluster/router/healthcheck/default_health_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion registry/zookeeper/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a9b1e1c

Please sign in to comment.