Commit 67bf0318 authored by Brian Downs's avatar Brian Downs

update

parent 44e59e42
...@@ -992,7 +992,7 @@ func (e *ETCD) DeleteSnapshots(ctx context.Context, snapshots []string) error { ...@@ -992,7 +992,7 @@ func (e *ETCD) DeleteSnapshots(ctx context.Context, snapshots []string) error {
ctx, cancel := context.WithTimeout(ctx, defaultS3OpTimeout) ctx, cancel := context.WithTimeout(ctx, defaultS3OpTimeout)
defer cancel() defer cancel()
go func(ctx context.Context) { go func() {
opts := minio.ListObjectsOptions{ opts := minio.ListObjectsOptions{
Recursive: true, Recursive: true,
} }
...@@ -1012,7 +1012,7 @@ func (e *ETCD) DeleteSnapshots(ctx context.Context, snapshots []string) error { ...@@ -1012,7 +1012,7 @@ func (e *ETCD) DeleteSnapshots(ctx context.Context, snapshots []string) error {
} }
} }
} }
}(ctx) }()
for { for {
select { select {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment