summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2017-01-03 10:58:58 -0500
committerJoram Wilander <jwawilander@gmail.com>2017-01-03 10:58:58 -0500
commit4467ce65cbece19ca79497e9e48c3d75b3e6a0be (patch)
treee7cc68e0df8eca9f93247c6652e00ed9d5416a74 /api
parentd2c43a6b1c3ac395c99a6ee2e220978c1349e824 (diff)
downloadchat-4467ce65cbece19ca79497e9e48c3d75b3e6a0be.tar.gz
chat-4467ce65cbece19ca79497e9e48c3d75b3e6a0be.tar.bz2
chat-4467ce65cbece19ca79497e9e48c3d75b3e6a0be.zip
Fixing TODO comment in web_hub.go (#4938)
Diffstat (limited to 'api')
-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)