Update dependencies. (#56)
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
This commit is contained in:
parent
62e4980e4c
commit
b35f303981
5 changed files with 182 additions and 126 deletions
iio
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue