Return cancellation errors

This commit is contained in:
Arnaud 2025-10-23 06:11:31 +02:00
parent bcdff2f8ba
commit bc8bbf4172
No known key found for this signature in database
GPG Key ID: 20E40A5D3110766F
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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.