Skip to content

Commit

Permalink
fix review issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cvictory committed Jul 2, 2021
1 parent 96fae17 commit 5dc973a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions protocol/rpc_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
package protocol

import (
"github.com/apache/dubbo-go/common/constant"
"github.com/apache/dubbo-go/common/logger"
"sync"
"sync/atomic"
"time"
)

import (
"github.com/apache/dubbo-go/common"
"github.com/apache/dubbo-go/common/constant"
"github.com/apache/dubbo-go/common/logger"
)

var (
Expand Down Expand Up @@ -358,7 +358,7 @@ func (s *ServiceHealthState) refreshBlackList() {
wg.Add(1)
go func(ivks []*invokerState, i int) {
defer wg.Done()
for j, _ := range ivks {
for j := range ivks {
if j%3-i == 0 && ivks[j].invoker.IsAvailable() {
s.RemoveInvokerUnhealthyStatus(ivks[j].invoker)
} else {
Expand Down

0 comments on commit 5dc973a

Please sign in to comment.