Skip to content

Commit

Permalink
Pass on context to ConnectionsPidWithContext
Browse files Browse the repository at this point in the history
  • Loading branch information
ib-steffen committed Oct 19, 2022
1 parent 400a453 commit 5bbcabf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/net_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 5bbcabf

Please sign in to comment.