Skip to content

Commit e978241

Browse files
committed
runtime/v2: should use defer ctx to cleanup
Signed-off-by: Wei Fu <[email protected]> (cherry picked from commit 846cb96) Signed-off-by: Wei Fu <[email protected]>
1 parent 8046210 commit e978241

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runtime/v2/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func (m *TaskManager) Create(ctx context.Context, id string, opts runtime.Create
159159
defer cancel()
160160
_, errShim := shim.Delete(dctx)
161161
if errShim != nil {
162-
shim.Shutdown(ctx)
162+
shim.Shutdown(dctx)
163163
shim.Close()
164164
}
165165
}

0 commit comments

Comments
 (0)