Update ReadCloser interface check to ReadSeekCloser (#595)

This commit is contained in:
YenForYang 2021-09-11 23:14:07 -05:00 committed by GitHub
parent a9cbb644c5
commit 4691b0b8d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -14,9 +14,7 @@ import (
// Accesses Torrent data via a Client. Reads block until the data is available. Seeks and readahead
// also drive Client behaviour.
type Reader interface {
io.Reader
io.Seeker
io.Closer
io.ReadSeekCloser
missinggo.ReadContexter
// Configure the number of bytes ahead of a read that should also be prioritized in preparation
// for further reads.
@ -54,7 +52,7 @@ type reader struct {
pieces pieceRange
}
var _ io.ReadCloser = (*reader)(nil)
var _ io.ReadSeekCloser = (*reader)(nil)
func (r *reader) SetResponsive() {
r.responsive = true