chore: fix function names in comment

Signed-off-by: yudrywet <yudeyao@yeah.net>
This commit is contained in:
yudrywet 2024-04-14 20:04:35 +08:00 committed by Nick Craig-Wood
parent 51582e36e8
commit 50aa677934
4 changed files with 4 additions and 4 deletions

View file

@ -363,7 +363,7 @@ var retryErrorCodes = []int{
504, // Gateway Time-out 504, // Gateway Time-out
} }
// shouldRetryNoAuth returns a boolean as to whether this resp and err // shouldRetryNoReauth returns a boolean as to whether this resp and err
// deserve to be retried. It returns the err as a convenience // deserve to be retried. It returns the err as a convenience
func (f *Fs) shouldRetryNoReauth(ctx context.Context, resp *http.Response, err error) (bool, error) { func (f *Fs) shouldRetryNoReauth(ctx context.Context, resp *http.Response, err error) (bool, error) {
if fserrors.ContextError(ctx, &err) { if fserrors.ContextError(ctx, &err) {

View file

@ -119,7 +119,7 @@ func (r *Handle) startReadWorkers() {
r.scaleWorkers(totalWorkers) r.scaleWorkers(totalWorkers)
} }
// scaleOutWorkers will increase the worker pool count by the provided amount // scaleWorkers will increase the worker pool count by the provided amount
func (r *Handle) scaleWorkers(desired int) { func (r *Handle) scaleWorkers(desired int) {
current := r.workers current := r.workers
if current == desired { if current == desired {

View file

@ -1919,7 +1919,7 @@ func (f *Fs) findExportFormatByMimeType(ctx context.Context, itemMimeType string
return "", "", isDocument return "", "", isDocument
} }
// findExportFormatByMimeType works out the optimum export settings // findExportFormat works out the optimum export settings
// for the given drive.File. // for the given drive.File.
// //
// Look through the exportExtensions and find the first format that can be // Look through the exportExtensions and find the first format that can be

View file

@ -644,7 +644,7 @@ func (f *Fs) NewObject(ctx context.Context, remote string) (fs.Object, error) {
return f.newObjectWithInfo(ctx, remote, nil) return f.newObjectWithInfo(ctx, remote, nil)
} }
// listSharedFoldersApi lists all available shared folders mounted and not mounted // listSharedFolders lists all available shared folders mounted and not mounted
// we'll need the id later so we have to return them in original format // we'll need the id later so we have to return them in original format
func (f *Fs) listSharedFolders(ctx context.Context) (entries fs.DirEntries, err error) { func (f *Fs) listSharedFolders(ctx context.Context) (entries fs.DirEntries, err error) {
started := false started := false