Skip to content

Commit

Permalink
delete useless codes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexStocks committed Oct 31, 2021
1 parent 669ab0a commit 0afb51f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
6 changes: 2 additions & 4 deletions cluster/cluster/base/cluster_invoker.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,9 @@ func (invoker *ClusterInvoker) doSelectInvoker(lb loadbalance.LoadBalance, invoc
}
return reselectedInvoker
}
} else {
return selectedInvoker
}
logger.Errorf("all %d invokers is unavailable for %s.", len(invokers), selectedInvoker.GetURL().String())
return nil

return selectedInvoker
}

func isInvoked(selectedInvoker protocol.Invoker, invoked []protocol.Invoker) bool {
Expand Down
2 changes: 0 additions & 2 deletions cluster/cluster_impl/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,3 @@ import (
_ "dubbo.apache.org/dubbo-go/v3/cluster/cluster/forking"
_ "dubbo.apache.org/dubbo-go/v3/cluster/cluster/zoneaware"
)

func init() {}
2 changes: 0 additions & 2 deletions filter/filter_impl/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,3 @@ import (
_ "dubbo.apache.org/dubbo-go/v3/filter/tps"
_ "dubbo.apache.org/dubbo-go/v3/filter/tracing"
)

func init() {}

0 comments on commit 0afb51f

Please sign in to comment.