fix: GetUploadReader needs ctx
This commit is contained in:
parent
c452b0c271
commit
a5f0a4bfcc
|
@ -113,7 +113,7 @@ func (f *S5File) Close() error {
|
||||||
func (f *S5File) init(offset int64) error {
|
func (f *S5File) init(offset int64) error {
|
||||||
if f.reader == nil {
|
if f.reader == nil {
|
||||||
|
|
||||||
reader, err := f.tus.GetUploadReader(f.hash, offset)
|
reader, err := f.tus.GetUploadReader(f.ctx, f.hash, offset)
|
||||||
|
|
||||||
if err == nil {
|
if err == nil {
|
||||||
f.reader = reader
|
f.reader = reader
|
||||||
|
|
Loading…
Reference in New Issue