Fixing TODO comment in web_hub.go (#4938)
Этот коммит содержится в:
коммит произвёл
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)
|
||||
|
||||
Ссылка в новой задаче
Block a user