Skip to content

Commit 5bbcabf

Browse files
committed
Pass on context to ConnectionsPidWithContext
1 parent 400a453 commit 5bbcabf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/net_unix.go

+1-1
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)