(path string)
| 85 | } |
| 86 | |
| 87 | func GetClientsCount(path string) int { |
| 88 | clientsMu.RLock() |
| 89 | defer clientsMu.RUnlock() |
| 90 | count := 0 |
| 91 | for _, client := range clients { |
| 92 | if client.Path == path { |
| 93 | count++ |
| 94 | } |
| 95 | } |
| 96 | return count |
| 97 | } |
| 98 | |
| 99 | func GetActiveFileCount() int { |
| 100 | clientsMu.RLock() |
no outgoing calls
no test coverage detected