cmd/mi: fix reddit errors
This commit is contained in:
parent
7a928aaa4a
commit
27a8595cbc
|
@ -71,8 +71,10 @@ func (mi *Mi) StreamReddit(ctx context.Context) {
|
|||
kill <- true
|
||||
kill <- true
|
||||
runtime.Goexit()
|
||||
case <-errs:
|
||||
ln.Error(ctx, err)
|
||||
case err := <-errs:
|
||||
if err != nil {
|
||||
ln.Error(ctx, err)
|
||||
}
|
||||
case p := <-posts:
|
||||
ln.Log(ctx, ln.Info("got reddit post"), ln.F{
|
||||
"from": p.Author,
|
||||
|
|
Loading…
Reference in New Issue