File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1919package consoleutil
2020
2121import (
22- gocontext "context"
22+ "context"
2323 "os"
2424 "os/signal"
2525
@@ -31,7 +31,7 @@ import (
3131
3232// HandleConsoleResize resizes the console.
3333// From https://github.com/containerd/containerd/blob/v1.7.0-rc.2/cmd/ctr/commands/tasks/tasks_unix.go#L43-L68
34- func HandleConsoleResize (ctx gocontext .Context , task resizer , con console.Console ) error {
34+ func HandleConsoleResize (ctx context .Context , task resizer , con console.Console ) error {
3535 // do an initial resize of the console
3636 size , err := con .Size ()
3737 if err != nil {
Original file line number Diff line number Diff line change 1717package consoleutil
1818
1919import (
20- gocontext "context"
20+ "context"
2121 "time"
2222
2323 "github.com/containerd/console"
@@ -26,7 +26,7 @@ import (
2626
2727// HandleConsoleResize resizes the console.
2828// From https://github.com/containerd/containerd/blob/v1.7.0-rc.2/cmd/ctr/commands/tasks/tasks_windows.go#L34-L61
29- func HandleConsoleResize (ctx gocontext .Context , task resizer , con console.Console ) error {
29+ func HandleConsoleResize (ctx context .Context , task resizer , con console.Console ) error {
3030 // do an initial resize of the console
3131 size , err := con .Size ()
3232 if err != nil {
Original file line number Diff line number Diff line change 1717package signalutil
1818
1919import (
20- gocontext "context"
20+ "context"
2121 "os"
2222 "os/signal"
2323 "syscall"
@@ -29,12 +29,12 @@ import (
2929
3030// killer is from https://github.com/containerd/containerd/blob/v1.7.0-rc.2/cmd/ctr/commands/signals.go#L30-L32
3131type killer interface {
32- Kill (gocontext .Context , syscall.Signal , ... containerd.KillOpts ) error
32+ Kill (context .Context , syscall.Signal , ... containerd.KillOpts ) error
3333}
3434
3535// ForwardAllSignals forwards signals.
3636// From https://github.com/containerd/containerd/blob/v1.7.0-rc.2/cmd/ctr/commands/signals.go#L34-L55
37- func ForwardAllSignals (ctx gocontext .Context , task killer ) chan os.Signal {
37+ func ForwardAllSignals (ctx context .Context , task killer ) chan os.Signal {
3838 sigc := make (chan os.Signal , 128 )
3939 signal .Notify (sigc )
4040 go func () {
You can’t perform that action at this time.
0 commit comments