Files
beszel-ipv6/internal/hub/ws/ws_test_helpers.go

11 lines
219 B
Go

//go:build testing
package ws
// GetPendingCount returns the number of pending requests (for monitoring)
func (rm *RequestManager) GetPendingCount() int {
rm.RLock()
defer rm.RUnlock()
return len(rm.pendingReqs)
}