backend: rename LimitReader to LimitReadCloser

This commit is contained in:
Alexander Neumann 2015-05-02 16:13:56 +02:00
parent 0ca678228d
commit 1f94ac724f
3 changed files with 8 additions and 6 deletions

View file

@ -446,7 +446,7 @@ func (r *SFTP) GetReader(t backend.Type, name string, offset, length uint) (io.R
return f, nil
}
return backend.LimitReader(f, int64(length)), nil
return backend.LimitReadCloser(f, int64(length)), nil
}
// Test returns true if a blob of the given type and name exists in the backend.