修复连接数限制计算错误

This commit is contained in:
刘祥超
2022-07-25 19:48:03 +08:00
parent 73888c98a8
commit fd6fa929de

View File

@@ -129,9 +129,8 @@ func (this *ClientConn) Close() error {
err := this.rawConn.Close() err := this.rawConn.Close()
// 单个服务并发数限制 // 单个服务并发数限制
if this.hasLimit { // 不能加条件限制,因为服务配置随时有变化
sharedClientConnLimiter.Remove(this.rawConn.RemoteAddr().String()) sharedClientConnLimiter.Remove(this.rawConn.RemoteAddr().String())
}
return err return err
} }