Merge pull request #56 from 178inaba/stream_error_handling
Fix not to return error event of context in streamingpull/57/head v0.0.1
commit
f279adb618
|
@ -79,7 +79,6 @@ func cmdStream(c *cli.Context) error {
|
|||
}
|
||||
go func() {
|
||||
<-sc
|
||||
close(q)
|
||||
cancel()
|
||||
}()
|
||||
|
||||
|
|
|
@ -105,7 +105,6 @@ func (c *Client) streaming(ctx context.Context, p string, params url.Values) (ch
|
|||
for {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
q <- &ErrorEvent{ctx.Err()}
|
||||
return
|
||||
default:
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue