Fix WithSnapshotter doc to reference non-deprecated method (#2180)
Signed-off-by: Anuraag Agrawal <anuraaga@gmail.com>
This commit is contained in:
committed by
GitHub
parent
c6a907bb9d
commit
f31be308fa
@@ -30,7 +30,7 @@ type EnableSnapshotterKey = ctxkey.EnableSnapshotterKey
|
||||
|
||||
// WithSnapshotter enables snapshots.
|
||||
// Passing the returned context to a exported function invocation enables snapshots,
|
||||
// and allows host functions to retrieve the Snapshotter using SnapshotterKey.
|
||||
// and allows host functions to retrieve the Snapshotter using GetSnapshotter.
|
||||
func WithSnapshotter(ctx context.Context) context.Context {
|
||||
return context.WithValue(ctx, ctxkey.EnableSnapshotterKey{}, struct{}{})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user