Skip to content

Commit

Permalink
Merge pull request #1365 from ib-steffen/pass-context
Browse files Browse the repository at this point in the history
Pass on context to ConnectionsPidWithContext
  • Loading branch information
shirou committed Oct 29, 2022
2 parents b34aa19 + 5bbcabf commit 50f2250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/net_unix.go
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 50f2250

Please sign in to comment.