mirror of
https://github.com/logos-storage/logos-storage-go-bindings.git
synced 2026-01-03 05:53:10 +00:00
Return cancellation errors
This commit is contained in:
parent
bcdff2f8ba
commit
bc8bbf4172
@ -239,7 +239,7 @@ func (node CodexNode) DownloadStream(ctx context.Context, cid string, options Do
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return cancelError
|
||||
}
|
||||
|
||||
// DownloadInit initializes the download process for a specific CID.
|
||||
|
||||
@ -333,7 +333,7 @@ func (node CodexNode) UploadFile(ctx context.Context, options UploadOptions) (st
|
||||
return "", err
|
||||
}
|
||||
|
||||
return bridge.result, nil
|
||||
return bridge.result, cancelErr
|
||||
}
|
||||
|
||||
// UploadFileAsync is the asynchronous version of UploadFile using a goroutine.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user