|
|
|
|
@ -442,7 +442,6 @@ func (s *Server) handleEvents() http.HandlerFunc {
|
|
|
|
|
}()
|
|
|
|
|
|
|
|
|
|
// Keep connection open and send events as they arrive
|
|
|
|
|
go func() {
|
|
|
|
|
for {
|
|
|
|
|
select {
|
|
|
|
|
case msg, ok := <-clientChan:
|
|
|
|
|
@ -457,7 +456,6 @@ func (s *Server) handleEvents() http.HandlerFunc {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -505,7 +503,6 @@ func (s *Server) handleAdminEvents() http.HandlerFunc {
|
|
|
|
|
}()
|
|
|
|
|
|
|
|
|
|
// Keep connection open and send events as they arrive
|
|
|
|
|
go func() {
|
|
|
|
|
for {
|
|
|
|
|
select {
|
|
|
|
|
case msg, ok := <-clientChan:
|
|
|
|
|
@ -520,7 +517,6 @@ func (s *Server) handleAdminEvents() http.HandlerFunc {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|