Merge pull request #1365 from ib-steffen/pass-context

Pass on context to ConnectionsPidWithContext
tags/v3.22.10 v3.22.10
shirou 2 years ago committed by GitHub
commit 50f22507f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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`

Loading…
Cancel
Save