mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 10:10:08 -08:00
types: Make ChannelNameMap use mutexes to fix crash
This commit is contained in:
parent
ff3a864aa3
commit
e0035dfa04
3 changed files with 40 additions and 12 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue