From 48424fe0f388bab3fa4d2f0691807c1b60fb5df2 Mon Sep 17 00:00:00 2001 From: FelixZhou Date: Sun, 17 Mar 2024 13:04:35 +0800 Subject: [PATCH] add test case --- sseread.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/sseread.go b/sseread.go index f2c69c7..23dc233 100644 --- a/sseread.go +++ b/sseread.go @@ -4,7 +4,6 @@ import ( "bufio" "bytes" "io" - "log" ) // Read reads from an io.Reader, parses the data as Server-Sent Events, and invokes the provided callback function for each event. @@ -38,7 +37,6 @@ func ReadCh(responseBody io.Reader) (messages <-chan *Event, err error) { ev := new(Event) for scanner.Scan() { line := scanner.Bytes() - log.Println(string(line)) firstColonIndex := bytes.IndexByte(line, ':') if firstColonIndex == -1 { channel <- ev