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

Pass on context to ConnectionsPidWithContext
This commit is contained in:
shirou 2022-10-29 13:45:28 +09:00 committed by GitHub
commit 50f22507f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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