Skip to content

Commit

Permalink
refactor:polaris ability open judge
Browse files Browse the repository at this point in the history
  • Loading branch information
chuntaojun committed Dec 31, 2022
1 parent 392dc3a commit 5f643ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cluster/router/polaris/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,9 @@ func (p *polarisRouter) Priority() int64 {

// Notify the router the invoker list
func (p *polarisRouter) Notify(invokers []protocol.Invoker) {
if !p.openRoute {
return
}
if len(invokers) == 0 {
return
}
Expand Down

0 comments on commit 5f643ef

Please sign in to comment.