Skip to content

Commit

Permalink
Fix breaking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Zef Hemel committed Apr 18, 2018
1 parent a612fe8 commit e08797d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/backend/stream/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@ func (client *Client) Query(ctx context.Context, q common.Query) <-chan common.L
reader := bufio.NewReader(client.reader)
go func() {
var ltFunc heuristic.LogTimestampParser
LFor:
for {
select {
case <-ctx.Done():
// Context canceled, let's get outta here
break
break LFor
default:
}
line, err := reader.ReadString('\n')
if err != nil {
Expand Down

0 comments on commit e08797d

Please sign in to comment.