Returns a copy of the server stats
()
| 28 | |
| 29 | // Returns a copy of the server stats |
| 30 | func GetStats() Stats { |
| 31 | statsLock.RLock() |
| 32 | defer statsLock.RUnlock() |
| 33 | |
| 34 | return serverStats |
| 35 | } |
| 36 | |
| 37 | // Returns a copy of the server stats |
| 38 | func UpdateStats(s Stats) { |
no outgoing calls
no test coverage detected