Fixing TODO comment in web_hub.go (#4938)

Этот коммит содержится в:
Corey Hulen
2017-01-03 10:58:58 -05:00
коммит произвёл Joram Wilander
родитель d2c43a6b1c
Коммит 4467ce65cb

Просмотреть файл

@@ -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)