Skip to content

Commit 50f2250

Browse files
authored
Merge pull request #1365 from ib-steffen/pass-context
Pass on context to ConnectionsPidWithContext
2 parents b34aa19 + 5bbcabf commit 50f2250

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/net_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func Connections(kind string) ([]ConnectionStat, error) {
2020
}
2121

2222
func ConnectionsWithContext(ctx context.Context, kind string) ([]ConnectionStat, error) {
23-
return ConnectionsPid(kind, 0)
23+
return ConnectionsPidWithContext(ctx, kind, 0)
2424
}
2525

2626
// Return a list of network connections opened returning at most `max`

0 commit comments

Comments
 (0)