From 50aa6779344f4e8716d2b0121f7c85c672b4de6c Mon Sep 17 00:00:00 2001 From: yudrywet Date: Sun, 14 Apr 2024 20:04:35 +0800 Subject: [PATCH] chore: fix function names in comment Signed-off-by: yudrywet --- backend/b2/b2.go | 2 +- backend/cache/handle.go | 2 +- backend/drive/drive.go | 2 +- backend/dropbox/dropbox.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/b2/b2.go b/backend/b2/b2.go index 01f45033c..b019412df 100644 --- a/backend/b2/b2.go +++ b/backend/b2/b2.go @@ -363,7 +363,7 @@ var retryErrorCodes = []int{ 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 func (f *Fs) shouldRetryNoReauth(ctx context.Context, resp *http.Response, err error) (bool, error) { if fserrors.ContextError(ctx, &err) { diff --git a/backend/cache/handle.go b/backend/cache/handle.go index a7a1497e1..df1029c46 100644 --- a/backend/cache/handle.go +++ b/backend/cache/handle.go @@ -119,7 +119,7 @@ func (r *Handle) startReadWorkers() { 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) { current := r.workers if current == desired { diff --git a/backend/drive/drive.go b/backend/drive/drive.go index a62d47ca9..0e97d9553 100644 --- a/backend/drive/drive.go +++ b/backend/drive/drive.go @@ -1919,7 +1919,7 @@ func (f *Fs) findExportFormatByMimeType(ctx context.Context, itemMimeType string return "", "", isDocument } -// findExportFormatByMimeType works out the optimum export settings +// findExportFormat works out the optimum export settings // for the given drive.File. // // Look through the exportExtensions and find the first format that can be diff --git a/backend/dropbox/dropbox.go b/backend/dropbox/dropbox.go index 235e121be..bd4f28c05 100644 --- a/backend/dropbox/dropbox.go +++ b/backend/dropbox/dropbox.go @@ -644,7 +644,7 @@ func (f *Fs) NewObject(ctx context.Context, remote string) (fs.Object, error) { 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 func (f *Fs) listSharedFolders(ctx context.Context) (entries fs.DirEntries, err error) { started := false