Update dependencies. ()

Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
This commit is contained in:
Antonio Navarro Perez 2021-04-25 11:00:27 +02:00 committed by GitHub
parent 62e4980e4c
commit b35f303981
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 182 additions and 126 deletions

View file

@ -25,10 +25,12 @@ func (rw *readAtWrapper) ReadAt(p []byte, off int64) (int, error) {
return 0, err
}
return rw.Read(p)
return io.ReadAtLeast(rw, p, len(p))
}
func (rw *readAtWrapper) Close() error {
rw.mu.Lock()
defer rw.mu.Unlock()
c, ok := rw.ReadSeeker.(io.Closer)
if !ok {
return nil