Skip to content

Commit

Permalink
fix(mopan): upload error (close alist-org#6158 in alist-org#6166)
Browse files Browse the repository at this point in the history
  • Loading branch information
foxxorcat authored and EtherealAO committed Apr 12, 2024
1 parent 7e1760e commit 6d78aca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/mopan/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ func (d *MoPan) Put(ctx context.Context, dstDir model.Obj, stream model.FileStre
}

if !initUpdload.FileDataExists {
utils.Log.Error(d.client.CloudDiskStartBusiness())
// utils.Log.Error(d.client.CloudDiskStartBusiness())

threadG, upCtx := errgroup.NewGroupWithContext(ctx, d.uploadThread,
retry.Attempts(3),
Expand Down Expand Up @@ -323,6 +323,7 @@ func (d *MoPan) Put(ctx context.Context, dstDir model.Obj, stream model.FileStre
if err != nil {
return err
}
req.ContentLength = byteSize
resp, err := base.HttpClient.Do(req)
if err != nil {
return err
Expand Down

0 comments on commit 6d78aca

Please sign in to comment.