Skip to content

Commit

Permalink
Don't use channel as buffer, rtl_tcp handles that sufficiently.
Browse files Browse the repository at this point in the history
  • Loading branch information
bemasher committed Nov 6, 2017
1 parent f8b5ccb commit b84344e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,7 @@ func (rcvr *Receiver) Run() {
log.Println("Error reading samples: ", err)
continue
}
select {
case blockCh <- block:
default:
log.Println("Dropped block...")
}
blockCh <- block
}
}()

Expand Down

0 comments on commit b84344e

Please sign in to comment.