浏览代码

fix: go issue 16206 (#1298)

BYT0723 3 年之前
父节点
当前提交
af3fb2b04d
共有 1 个文件被更改,包括 2 次插入2 次删除
  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 {