升级Go版本为v1.18

This commit is contained in:
GoEdgeLab
2022-07-07 09:21:18 +08:00
parent 8af2a4f63d
commit d7d1575c63
9 changed files with 67 additions and 54 deletions

View File

@@ -112,7 +112,7 @@ func (this *ClientConn) Write(b []byte) (n int, err error) {
// 统计当前服务带宽
if this.serverId > 0 {
if !this.isLO { // 环路不统计带宽,避免缓存预热等行为产生带宽
stats.SharedBandwidthStatManager.Add(this.serverId, int64(n))
stats.SharedBandwidthStatManager.Add(this.userId, this.serverId, int64(n))
}
}
}