1
0
Fork 0

Subscribing should be asynchronous

This commit is contained in:
Gregory Eremin 2014-09-12 00:06:13 +04:00
parent e572542330
commit a06b9f36bf
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ func subHandler(w http.ResponseWriter, r *http.Request) {
}
}()
theHub.Sub(sub)
go theHub.Sub(sub)
res := <-result
w.Header().Set("Queue", res.Queue)