chore: make function comment match function name

Signed-off-by: closeobserve <pingcap@yahoo.com>
This commit is contained in:
closeobserve 2025-04-13 17:40:27 +08:00
parent e028a30ecd
commit a6ce1a7995
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ import (
"context" "context"
) )
// resumeHashAt is a noop when resumable digest support is disabled. // resumeDigest is a noop when resumable digest support is disabled.
func (bw *blobWriter) resumeDigest(ctx context.Context) error { func (bw *blobWriter) resumeDigest(ctx context.Context) error {
return errResumableDigestNotAvailable return errResumableDigestNotAvailable
} }

View File

@ -35,7 +35,7 @@ func withTimeoutNotification(ctx context.Context, timeout *bool) context.Context
return context.WithValue(ctx, timeoutNotifyContextKey, timeout) return context.WithValue(ctx, timeoutNotifyContextKey, timeout)
} }
// withRetryNotifier returns a context that contains a retry notifier. The // withRetryNotification returns a context that contains a retry notifier. The
// retryNotificationPolicy will then invoke the callback when a retry happens // retryNotificationPolicy will then invoke the callback when a retry happens
func withRetryNotification(ctx context.Context, r retryNotificationReceiver) context.Context { // nolint: unused // may become useful at some point func withRetryNotification(ctx context.Context, r retryNotificationReceiver) context.Context { // nolint: unused // may become useful at some point
return context.WithValue(ctx, retryNotifyContextKey, r) return context.WithValue(ctx, retryNotifyContextKey, r)

View File

@ -40,7 +40,7 @@ type cloudFrontStorageMiddleware struct {
var _ storagedriver.StorageDriver = &cloudFrontStorageMiddleware{} var _ storagedriver.StorageDriver = &cloudFrontStorageMiddleware{}
// newCloudFrontLayerHandler constructs and returns a new CloudFront // newCloudFrontStorageMiddleware constructs and returns a new CloudFront
// LayerHandler implementation. // LayerHandler implementation.
// //
// Required options: // Required options: