mirror of
https://github.com/distribution/distribution.git
synced 2025-08-12 12:12:19 +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"
|
"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
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user