summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api/web_hub.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/web_hub.go b/api/web_hub.go
index b66925004..076236dfb 100644
--- a/api/web_hub.go
+++ b/api/web_hub.go
@@ -38,7 +38,8 @@ func NewWebHub() *Hub {
}
func TotalWebsocketConnections() int {
- // XXX TODO FIXME, this is racy and needs to be fixed
+ // This is racy, but it's only used for reporting information
+ // so it's probably OK
count := 0
for _, hub := range hubs {
count = count + len(hub.connections)