This commit is contained in:
withchao
2023-02-16 17:25:28 +08:00
parent 5e6f9448bc
commit 98769fefae
3 changed files with 2 additions and 19 deletions
-12
View File
@@ -14,15 +14,3 @@ func (r *Robin) Robin(slice []*grpc.ClientConn) int {
}
return index
}
type Hash struct {
}
func (r *Hash) Hash(slice []*grpc.ClientConn) int {
index := r.next
r.next += 1
if r.next > len(slice)-1 {
r.next = 0
}
return index
}