diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-25 15:34:20 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-25 15:39:29 +0900 |
| commit | 50403e9d60a69640107d20525379d4714da2f739 (patch) | |
| tree | eb9a72082f5aaf04c886db68b07ad8ccb9c88e72 /container/dispatcher_test.go | |
| parent | b98c5f2e219c142ab89c09445b6c014120f0760f (diff) | |
internal/netlink: wrap netpoll via context
This removes netpoll boilerplate for the most common use case.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/dispatcher_test.go')
| -rw-r--r-- | container/dispatcher_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/container/dispatcher_test.go b/container/dispatcher_test.go index ee2c3f19..b57c53b9 100644 --- a/container/dispatcher_test.go +++ b/container/dispatcher_test.go @@ -2,6 +2,7 @@ package container import ( "bytes" + "context" "fmt" "io" "io/fs" @@ -468,7 +469,7 @@ func (k *kstub) ensureFile(name string, perm, pperm os.FileMode) error { stub.CheckArg(k.Stub, "pperm", pperm, 2)) } -func (*kstub) mustLoopback(message.Msg) { /* noop */ } +func (*kstub) mustLoopback(context.Context, message.Msg) { /* noop */ } func (k *kstub) seccompLoad(rules []std.NativeRule, flags seccomp.ExportFlag) error { k.Helper() |
