From 50403e9d60a69640107d20525379d4714da2f739 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 25 Mar 2026 15:34:20 +0900 Subject: internal/netlink: wrap netpoll via context This removes netpoll boilerplate for the most common use case. Signed-off-by: Ophestra --- container/dispatcher_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'container/dispatcher_test.go') 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() -- cgit v1.3.1