Update tools/tools.go
This commit is contained in:
parent
59a1307eee
commit
0dce7356bf
@ -55,7 +55,6 @@ func SseWrapper(emitter DataEmitter) http.HandlerFunc {
|
||||
case <-r.Context().Done():
|
||||
return
|
||||
case <-time.After(time.Second * 10):
|
||||
fmt.Println("ping")
|
||||
SSEPing(w)
|
||||
case m := <-dE:
|
||||
fmt.Println("datatatata", m)
|
||||
@ -75,7 +74,6 @@ func SseWrapper(emitter DataEmitter) http.HandlerFunc {
|
||||
}
|
||||
|
||||
flusher.Flush()
|
||||
return
|
||||
}
|
||||
line, err := json.Marshal(m)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user