fix: use getWorkerObjectUrl
This commit is contained in:
parent
c197b1425b
commit
4ff1334d8a
|
@ -164,7 +164,7 @@ func Download(hash string) (io.Reader, error) {
|
||||||
tusItem := db.Get().Table("tus").Where(&model.Tus{Hash: hash}).Row()
|
tusItem := db.Get().Table("tus").Where(&model.Tus{Hash: hash}).Row()
|
||||||
|
|
||||||
if uploadItem.Err() == nil {
|
if uploadItem.Err() == nil {
|
||||||
fetch, err := client.R().SetDoNotParseResponse(true).Get(getWorkerProofUrl(hash))
|
fetch, err := client.R().SetDoNotParseResponse(true).Get(getWorkerObjectUrl(hash))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Get().Error(ErrFailedFetchObject.Error(), zap.Error(err))
|
logger.Get().Error(ErrFailedFetchObject.Error(), zap.Error(err))
|
||||||
return nil, ErrFailedFetchObject
|
return nil, ErrFailedFetchObject
|
||||||
|
|
Loading…
Reference in New Issue