mirror of
https://github.com/henrygd/beszel.git
synced 2026-03-22 13:36:16 +01:00
11 lines
219 B
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)
|
|
}
|