mirror of
https://github.com/distribution/distribution.git
synced 2025-04-27 19:15:28 +00:00
chore: make function comment match function name
Signed-off-by: closeobserve <pingcap@yahoo.com>
This commit is contained in:
parent
e028a30ecd
commit
a6ce1a7995
@ -7,7 +7,7 @@ import (
|
||||
"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 {
|
||||
return errResumableDigestNotAvailable
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ func withTimeoutNotification(ctx context.Context, timeout *bool) context.Context
|
||||
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
|
||||
func withRetryNotification(ctx context.Context, r retryNotificationReceiver) context.Context { // nolint: unused // may become useful at some point
|
||||
return context.WithValue(ctx, retryNotifyContextKey, r)
|
||||
|
@ -40,7 +40,7 @@ type cloudFrontStorageMiddleware struct {
|
||||
|
||||
var _ storagedriver.StorageDriver = &cloudFrontStorageMiddleware{}
|
||||
|
||||
// newCloudFrontLayerHandler constructs and returns a new CloudFront
|
||||
// newCloudFrontStorageMiddleware constructs and returns a new CloudFront
|
||||
// LayerHandler implementation.
|
||||
//
|
||||
// Required options:
|
||||
|
Loading…
Reference in New Issue
Block a user