Subscribing should be asynchronous
This commit is contained in:
parent
e572542330
commit
a06b9f36bf
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user