mirror of
https://github.com/shirou/gopsutil.git
synced 2025-04-26 13:48:59 +08:00
Pass on context to ConnectionsPidWithContext
This commit is contained in:
parent
400a453e67
commit
5bbcabf17d
@ -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…
x
Reference in New Issue
Block a user