mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-17 05:08:09 -07:00
types: Make ChannelNameMap use mutexes to fix crash
This commit is contained in:
+1
-1
@@ -75,7 +75,7 @@ func restStatus(w http.ResponseWriter, r *http.Request) {
|
||||
rs := restStatusResp{
|
||||
Clients: restAPIServer.clients.Count(),
|
||||
Opers: len(restAPIServer.operators),
|
||||
Channels: len(restAPIServer.channels),
|
||||
Channels: restAPIServer.channels.Len(),
|
||||
}
|
||||
b, err := json.Marshal(rs)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user