diff --git a/internal/nodes/node.go b/internal/nodes/node.go index 64e8a8f..d01f6ea 100644 --- a/internal/nodes/node.go +++ b/internal/nodes/node.go @@ -632,6 +632,7 @@ func (this *Node) listenSock() error { "ipConns": ipConns, "serverConns": serverConns, "total": sharedListenerManager.TotalActiveConnections(), + "limiter": sharedConnectionsLimiter.Len(), }, }) } diff --git a/internal/ratelimit/counter.go b/internal/ratelimit/counter.go index 7bf012a..3c2cc4b 100644 --- a/internal/ratelimit/counter.go +++ b/internal/ratelimit/counter.go @@ -27,7 +27,6 @@ func (this *Counter) Count() int { } // Len 已占用数量 -// 注意:非线程安全 func (this *Counter) Len() int { return len(this.sem) }