Browse Source

fix: go issue 16206 (#1298)

BYT0723 3 years ago
parent
commit
af3fb2b04d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      zrpc/internal/balancer/p2c/p2c.go

+ 2 - 2
zrpc/internal/balancer/p2c/p2c.go

@@ -182,14 +182,14 @@ func (p *p2cPicker) logStats() {
 }
 
 type subConn struct {
-	addr     resolver.Address
-	conn     balancer.SubConn
 	lag      uint64
 	inflight int64
 	success  uint64
 	requests int64
 	last     int64
 	pick     int64
+	addr     resolver.Address
+	conn     balancer.SubConn
 }
 
 func (c *subConn) healthy() bool {