From 516af01a12cb9432838456047c6b21a181e8fa68 Mon Sep 17 00:00:00 2001 From: rubyisrust Date: Wed, 14 Aug 2024 02:23:33 +0800 Subject: [PATCH] chore: fix some function names (#20243) Signed-off-by: rubyisrust --- cmd/admin-handlers.go | 2 +- cmd/api-errors.go | 2 +- cmd/batch-handlers.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/admin-handlers.go b/cmd/admin-handlers.go index 9af71cb47..9ab620e71 100644 --- a/cmd/admin-handlers.go +++ b/cmd/admin-handlers.go @@ -3059,7 +3059,7 @@ func targetStatus(ctx context.Context, h logger.Target) madmin.Status { return madmin.Status{Status: string(madmin.ItemOffline)} } -// fetchLoggerDetails return log info +// fetchLoggerInfo return log info func fetchLoggerInfo(ctx context.Context) ([]madmin.Logger, []madmin.Audit) { var loggerInfo []madmin.Logger var auditloggerInfo []madmin.Audit diff --git a/cmd/api-errors.go b/cmd/api-errors.go index 01410ef36..1c5ec4c30 100644 --- a/cmd/api-errors.go +++ b/cmd/api-errors.go @@ -2592,7 +2592,7 @@ func getAPIError(code APIErrorCode) APIError { return errorCodes.ToAPIErr(ErrInternalError) } -// getErrorResponse gets in standard error and resource value and +// getAPIErrorResponse gets in standard error and resource value and // provides a encodable populated response values func getAPIErrorResponse(ctx context.Context, err APIError, resource, requestID, hostID string) APIErrorResponse { reqInfo := logger.GetReqInfo(ctx) diff --git a/cmd/batch-handlers.go b/cmd/batch-handlers.go index d8dcb27b3..bcb78f2b3 100644 --- a/cmd/batch-handlers.go +++ b/cmd/batch-handlers.go @@ -1705,7 +1705,7 @@ func (a adminAPIHandlers) DescribeBatchJob(w http.ResponseWriter, r *http.Reques w.Write(buf) } -// StarBatchJob queue a new job for execution +// StartBatchJob queue a new job for execution func (a adminAPIHandlers) StartBatchJob(w http.ResponseWriter, r *http.Request) { ctx := r.Context()