mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-11 22:00:25 +08:00
优化代码
This commit is contained in:
@@ -632,6 +632,7 @@ func (this *Node) listenSock() error {
|
|||||||
"ipConns": ipConns,
|
"ipConns": ipConns,
|
||||||
"serverConns": serverConns,
|
"serverConns": serverConns,
|
||||||
"total": sharedListenerManager.TotalActiveConnections(),
|
"total": sharedListenerManager.TotalActiveConnections(),
|
||||||
|
"limiter": sharedConnectionsLimiter.Len(),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ func (this *Counter) Count() int {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Len 已占用数量
|
// Len 已占用数量
|
||||||
// 注意:非线程安全
|
|
||||||
func (this *Counter) Len() int {
|
func (this *Counter) Len() int {
|
||||||
return len(this.sem)
|
return len(this.sem)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user