Skip to content

Commit

Permalink
Reader.SetReadahead can change readahead pieces
Browse files Browse the repository at this point in the history
  • Loading branch information
anacrolix committed Oct 24, 2016
1 parent 0e221db commit 559afcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (r *Reader) SetReadahead(readahead int64) {
r.mu.Unlock()
r.t.cl.mu.Lock()
defer r.t.cl.mu.Unlock()
r.tickleClient()
r.posChanged()
}

func (r *Reader) readable(off int64) (ret bool) {
Expand Down

0 comments on commit 559afcd

Please sign in to comment.