diff options
author | Corey Hulen <corey@hulen.com> | 2017-01-03 10:58:58 -0500 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-01-03 10:58:58 -0500 |
commit | 4467ce65cbece19ca79497e9e48c3d75b3e6a0be (patch) | |
tree | e7cc68e0df8eca9f93247c6652e00ed9d5416a74 /api/web_hub.go | |
parent | d2c43a6b1c3ac395c99a6ee2e220978c1349e824 (diff) | |
download | chat-4467ce65cbece19ca79497e9e48c3d75b3e6a0be.tar.gz chat-4467ce65cbece19ca79497e9e48c3d75b3e6a0be.tar.bz2 chat-4467ce65cbece19ca79497e9e48c3d75b3e6a0be.zip |
Fixing TODO comment in web_hub.go (#4938)
Diffstat (limited to 'api/web_hub.go')
-rw-r--r-- | api/web_hub.go | 3 |
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) |