refactor: use getWorkerProofUrl
This commit is contained in:
parent
85a02952df
commit
160a9f7ebb
|
@ -164,7 +164,7 @@ func Download(hash string) (io.Reader, error) {
|
|||
tusItem := db.Get().Table("tus").Where(&model.Tus{Hash: hash}).Row()
|
||||
|
||||
if uploadItem.Err() == nil {
|
||||
fetch, err := client.R().SetDoNotParseResponse(true).Get(fmt.Sprintf("/worker/objects/%s", hash))
|
||||
fetch, err := client.R().SetDoNotParseResponse(true).Get(getWorkerProofUrl(hash))
|
||||
if err != nil {
|
||||
logger.Get().Error(ErrFailedFetchObject.Error(), zap.Error(err))
|
||||
return nil, ErrFailedFetchObject
|
||||
|
|
Loading…
Reference in New Issue