mirror of
https://github.com/distribution/distribution.git
synced 2025-09-25 14:18:10 +00:00
registry/storage/driver: receive context on Cancel methods
both oss and gcs driver were missing the context parameter that is required to satisfy the storagedriver.FileWriter interface. Signed-off-by: Flavian Missi <fmissi@redhat.com>
This commit is contained in:
@@ -372,7 +372,7 @@ type writer struct {
|
||||
}
|
||||
|
||||
// Cancel removes any written content from this FileWriter.
|
||||
func (w *writer) Cancel() error {
|
||||
func (w *writer) Cancel(ctx context.Context) error {
|
||||
w.closed = true
|
||||
err := storageDeleteObject(cloud.NewContext(dummyProjectID, w.client), w.bucket, w.name)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user