Update tools/tools.go

This commit is contained in:
Mikhail 2023-04-13 23:34:26 +00:00
parent 59a1307eee
commit 0dce7356bf

@ -55,7 +55,6 @@ func SseWrapper(emitter DataEmitter) http.HandlerFunc {
case <-r.Context().Done(): case <-r.Context().Done():
return return
case <-time.After(time.Second * 10): case <-time.After(time.Second * 10):
fmt.Println("ping")
SSEPing(w) SSEPing(w)
case m := <-dE: case m := <-dE:
fmt.Println("datatatata", m) fmt.Println("datatatata", m)
@ -75,7 +74,6 @@ func SseWrapper(emitter DataEmitter) http.HandlerFunc {
} }
flusher.Flush() flusher.Flush()
return
} }
line, err := json.Marshal(m) line, err := json.Marshal(m)
if err != nil { if err != nil {