Skip to content

Commit 846cb96

Browse files
committed
runtime/v2: should use defer ctx to cleanup
Signed-off-by: Wei Fu <fuweid89@gmail.com>
1 parent 75c2646 commit 846cb96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/v2/manager.go

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

0 commit comments

Comments
 (0)