From 436e078298e9cd7c85d158ae642a37d681bc3239 Mon Sep 17 00:00:00 2001 From: Florian Lehner Date: Sat, 8 Jun 2024 15:24:40 +0200 Subject: [PATCH] fixup: drop unused parameter Signed-off-by: Florian Lehner --- net/net_linux.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/net_linux.go b/net/net_linux.go index 04658b5..00c5e02 100644 --- a/net/net_linux.go +++ b/net/net_linux.go @@ -472,10 +472,10 @@ func connectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, p if err != nil { return nil, fmt.Errorf("could not get pid(s), %d: %w", pid, err) } - return statsFromInodesWithContext(ctx, root, pid, tmap, inodes, skipUids) + return statsFromInodesWithContext(ctx, pid, tmap, inodes, skipUids) } -func statsFromInodesWithContext(ctx context.Context, root string, pid int32, tmap []netConnectionKindType, inodes map[uint32][]inodeMap, skipUids bool) ([]ConnectionStat, error) { +func statsFromInodesWithContext(ctx context.Context, pid int32, tmap []netConnectionKindType, inodes map[uint32][]inodeMap, skipUids bool) ([]ConnectionStat, error) { dupCheckMap := make(map[string]struct{}) var ret []ConnectionStat