File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import (
28
28
"strings"
29
29
30
30
"github.com/containerd/console"
31
- "github.com/containerd/containerd/api/runtime/task/v2 "
31
+ "github.com/containerd/containerd/api/runtime/task/v3 "
32
32
"github.com/containerd/containerd/v2/cmd/ctr/commands"
33
33
"github.com/containerd/containerd/v2/pkg/namespaces"
34
34
ptypes "github.com/containerd/containerd/v2/pkg/protobuf/types"
@@ -232,7 +232,7 @@ var execCommand = &cli.Command{
232
232
},
233
233
}
234
234
235
- func getTaskService (context * cli.Context ) (task.TaskService , error ) {
235
+ func getTaskService (context * cli.Context ) (task.TTRPCTaskService , error ) {
236
236
id := context .String ("id" )
237
237
if id == "" {
238
238
return nil , fmt .Errorf ("container id must be specified" )
@@ -255,7 +255,7 @@ func getTaskService(context *cli.Context) (task.TaskService, error) {
255
255
// TODO(stevvooe): This actually leaks the connection. We were leaking it
256
256
// before, so may not be a huge deal.
257
257
258
- return task .NewTaskClient (client ), nil
258
+ return task .NewTTRPCTaskClient (client ), nil
259
259
}
260
260
}
261
261
You can’t perform that action at this time.
0 commit comments