Skip to content

Commit 6c32b69

Browse files
committed
fix(fs): Fix import path errors and unify context parameters
1 parent 50b55dd commit 6c32b69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/baidu_netdisk/driver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"github.com/OpenListTeam/OpenList/v4/drivers/base"
1919
"github.com/OpenListTeam/OpenList/v4/internal/conf"
2020
"github.com/OpenListTeam/OpenList/v4/internal/driver"
21-
"github.com/OpenListTeam/OpenList/ err := d.uploadSlice(ctx, map[string]string{4/internal/errs"
21+
"github.com/OpenListTeam/OpenList/v4/internal/errs"
2222
"github.com/OpenListTeam/OpenList/v4/internal/model"
2323
"github.com/OpenListTeam/OpenList/v4/internal/model/reqres"
2424
"github.com/OpenListTeam/OpenList/v4/internal/model/tables"
@@ -400,7 +400,7 @@ func (d *BaiduNetdisk) SliceUpload(ctx context.Context, req *tables.SliceUpload,
400400
}
401401
req.PreupID = precreateResp.Uploadid
402402
}
403-
err := d.uploadSlice(c, map[string]string{
403+
err := d.uploadSlice(ctx, map[string]string{
404404
"method": "upload",
405405
"access_token": d.AccessToken,
406406
"type": "tmpfile",

0 commit comments

Comments
 (0)