Skip to content

Commit

Permalink
direct upload bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ErykKul committed Feb 17, 2023
1 parent aaf5af0 commit fedb0cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion image/app/core/io.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func write(ctx context.Context, dbId int64, dataverseKey, user string, fileStrea
reader = hashingReader{reader, sizeHasher}
reader = hashingReader{reader, remoteHasher}

if s.driver == "file" || Destination.IsDirectUpload() {
if s.driver == "file" || !Destination.IsDirectUpload() {
wg := &sync.WaitGroup{}
async_err := &ErrorHolder{}
f, err := getFile(ctx, dbId, wg, dataverseKey, user, persistentId, pid, s, id, async_err)
Expand Down

0 comments on commit fedb0cc

Please sign in to comment.