From 5bbcabf17dee532f94fb85cf24aa6e1bd731a85a Mon Sep 17 00:00:00 2001 From: Steffen Geissinger Date: Wed, 19 Oct 2022 10:07:21 +0200 Subject: [PATCH] Pass on context to ConnectionsPidWithContext --- net/net_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/net_unix.go b/net/net_unix.go index 2fd2224fa..cb846e28a 100644 --- a/net/net_unix.go +++ b/net/net_unix.go @@ -20,7 +20,7 @@ func Connections(kind string) ([]ConnectionStat, error) { } func ConnectionsWithContext(ctx context.Context, kind string) ([]ConnectionStat, error) { - return ConnectionsPid(kind, 0) + return ConnectionsPidWithContext(ctx, kind, 0) } // Return a list of network connections opened returning at most `max`