Update ReadCloser interface check to ReadSeekCloser (#595)
This commit is contained in:
parent
a9cbb644c5
commit
4691b0b8d1
|
@ -14,9 +14,7 @@ import (
|
||||||
// Accesses Torrent data via a Client. Reads block until the data is available. Seeks and readahead
|
// Accesses Torrent data via a Client. Reads block until the data is available. Seeks and readahead
|
||||||
// also drive Client behaviour.
|
// also drive Client behaviour.
|
||||||
type Reader interface {
|
type Reader interface {
|
||||||
io.Reader
|
io.ReadSeekCloser
|
||||||
io.Seeker
|
|
||||||
io.Closer
|
|
||||||
missinggo.ReadContexter
|
missinggo.ReadContexter
|
||||||
// Configure the number of bytes ahead of a read that should also be prioritized in preparation
|
// Configure the number of bytes ahead of a read that should also be prioritized in preparation
|
||||||
// for further reads.
|
// for further reads.
|
||||||
|
@ -54,7 +52,7 @@ type reader struct {
|
||||||
pieces pieceRange
|
pieces pieceRange
|
||||||
}
|
}
|
||||||
|
|
||||||
var _ io.ReadCloser = (*reader)(nil)
|
var _ io.ReadSeekCloser = (*reader)(nil)
|
||||||
|
|
||||||
func (r *reader) SetResponsive() {
|
func (r *reader) SetResponsive() {
|
||||||
r.responsive = true
|
r.responsive = true
|
||||||
|
|
Loading…
Reference in New Issue