From 4467ce65cbece19ca79497e9e48c3d75b3e6a0be Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Tue, 3 Jan 2017 10:58:58 -0500 Subject: Fixing TODO comment in web_hub.go (#4938) --- api/web_hub.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'api') 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) -- cgit v1.2.3-1-g7c22