Skip to content

Commit 9e6e87e

Browse files
committed
include filename in the cascade registration request
1 parent e468956 commit 9e6e87e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

walletnode/api/services/cascade.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ func (service *CascadeAPIHandler) Download(ctx context.Context, p *cascade.Downl
338338
if isMultiVolume {
339339
fsp := common.FileSplitter{PartSizeMB: partSizeMB}
340340
if err := fsp.JoinFiles(folderPath); err != nil {
341+
log.WithContext(ctx).WithError(err).Error("unable to join files")
341342
return nil, cascade.MakeInternalServerError(errors.New("unable to join files"))
342343
}
343344

walletnode/services/cascaderegister/service.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ func (service *CascadeRegistrationService) AddTask(p *cascade.StartProcessingPay
108108
request.RegAttemptID = regAttemptID
109109
request.FileID = filename
110110
request.BaseFileID = baseFileID
111+
request.FileName = filename
111112

112113
// get image filename from storage based on image_id
113114
filePath := filepath.Join(service.config.CascadeFilesDir, p.FileID, filename)

0 commit comments

Comments
 (0)