Skip to content

Commit 770b84f

Browse files
authored
Merge pull request #1693 from shirou/feat/fix_golangcilint_max_to_maxConn
fix: golangci lint with max -> maxConn
2 parents 6a1c12a + 5f15809 commit 770b84f

19 files changed

+101
-92
lines changed

disk/disk_freebsd.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ import (
1212
"strconv"
1313
"strings"
1414

15-
"github.com/shirou/gopsutil/v4/internal/common"
1615
"golang.org/x/sys/unix"
16+
17+
"github.com/shirou/gopsutil/v4/internal/common"
1718
)
1819

1920
// PartitionsWithContext returns disk partition.

disk/disk_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ func TestIOCounters_concurrency_on_darwin_cgo(t *testing.T) {
7474
t.Skip("darwin only")
7575
}
7676
var wg sync.WaitGroup
77-
const max = 1000
78-
for i := 1; i < max; i++ {
77+
const maxCount = 1000
78+
for i := 1; i < maxCount; i++ {
7979
wg.Add(1)
8080
go func() {
8181
defer wg.Done()

mem/mem_aix.go

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ package mem
55

66
import (
77
"context"
8+
9+
"github.com/shirou/gopsutil/v4/internal/common"
810
)
911

1012
func VirtualMemory() (*VirtualMemoryStat, error) {
@@ -14,3 +16,7 @@ func VirtualMemory() (*VirtualMemoryStat, error) {
1416
func SwapMemory() (*SwapMemoryStat, error) {
1517
return SwapMemoryWithContext(context.Background())
1618
}
19+
20+
func SwapDevices() ([]*SwapDevice, error) {
21+
return nil, common.ErrNotImplementedError
22+
}

net/net_aix.go

+10-10
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,11 @@ func ConnectionsWithContext(ctx context.Context, kind string) ([]ConnectionStat,
286286
return ret, nil
287287
}
288288

289-
func ConnectionsMax(kind string, max int) ([]ConnectionStat, error) {
290-
return ConnectionsMaxWithContext(context.Background(), kind, max)
289+
func ConnectionsMax(kind string, maxConn int) ([]ConnectionStat, error) {
290+
return ConnectionsMaxWithContext(context.Background(), kind, maxConn)
291291
}
292292

293-
func ConnectionsMaxWithContext(ctx context.Context, kind string, max int) ([]ConnectionStat, error) {
293+
func ConnectionsMaxWithContext(ctx context.Context, kind string, maxConn int) ([]ConnectionStat, error) {
294294
return []ConnectionStat{}, common.ErrNotImplementedError
295295
}
296296

@@ -305,8 +305,8 @@ func ConnectionsWithoutUidsWithContext(ctx context.Context, kind string) ([]Conn
305305
return ConnectionsMaxWithoutUidsWithContext(ctx, kind, 0)
306306
}
307307

308-
func ConnectionsMaxWithoutUidsWithContext(ctx context.Context, kind string, max int) ([]ConnectionStat, error) {
309-
return ConnectionsPidMaxWithoutUidsWithContext(ctx, kind, 0, max)
308+
func ConnectionsMaxWithoutUidsWithContext(ctx context.Context, kind string, maxConn int) ([]ConnectionStat, error) {
309+
return ConnectionsPidMaxWithoutUidsWithContext(ctx, kind, 0, maxConn)
310310
}
311311

312312
func ConnectionsPidWithoutUids(kind string, pid int32) ([]ConnectionStat, error) {
@@ -317,14 +317,14 @@ func ConnectionsPidWithoutUidsWithContext(ctx context.Context, kind string, pid
317317
return ConnectionsPidMaxWithoutUidsWithContext(ctx, kind, pid, 0)
318318
}
319319

320-
func ConnectionsPidMaxWithoutUids(kind string, pid int32, max int) ([]ConnectionStat, error) {
321-
return ConnectionsPidMaxWithoutUidsWithContext(context.Background(), kind, pid, max)
320+
func ConnectionsPidMaxWithoutUids(kind string, pid int32, maxConn int) ([]ConnectionStat, error) {
321+
return ConnectionsPidMaxWithoutUidsWithContext(context.Background(), kind, pid, maxConn)
322322
}
323323

324-
func ConnectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, pid int32, max int) ([]ConnectionStat, error) {
325-
return connectionsPidMaxWithoutUidsWithContext(ctx, kind, pid, max)
324+
func ConnectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, pid int32, maxConn int) ([]ConnectionStat, error) {
325+
return connectionsPidMaxWithoutUidsWithContext(ctx, kind, pid, maxConn)
326326
}
327327

328-
func connectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, pid int32, max int) ([]ConnectionStat, error) {
328+
func connectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, pid int32, maxConn int) ([]ConnectionStat, error) {
329329
return []ConnectionStat{}, common.ErrNotImplementedError
330330
}

net/net_fallback.go

+10-10
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ func ConnectionsWithContext(ctx context.Context, kind string) ([]ConnectionStat,
4949
return []ConnectionStat{}, common.ErrNotImplementedError
5050
}
5151

52-
func ConnectionsMax(kind string, max int) ([]ConnectionStat, error) {
53-
return ConnectionsMaxWithContext(context.Background(), kind, max)
52+
func ConnectionsMax(kind string, maxConn int) ([]ConnectionStat, error) {
53+
return ConnectionsMaxWithContext(context.Background(), kind, maxConn)
5454
}
5555

56-
func ConnectionsMaxWithContext(ctx context.Context, kind string, max int) ([]ConnectionStat, error) {
56+
func ConnectionsMaxWithContext(ctx context.Context, kind string, maxConn int) ([]ConnectionStat, error) {
5757
return []ConnectionStat{}, common.ErrNotImplementedError
5858
}
5959

@@ -68,8 +68,8 @@ func ConnectionsWithoutUidsWithContext(ctx context.Context, kind string) ([]Conn
6868
return ConnectionsMaxWithoutUidsWithContext(ctx, kind, 0)
6969
}
7070

71-
func ConnectionsMaxWithoutUidsWithContext(ctx context.Context, kind string, max int) ([]ConnectionStat, error) {
72-
return ConnectionsPidMaxWithoutUidsWithContext(ctx, kind, 0, max)
71+
func ConnectionsMaxWithoutUidsWithContext(ctx context.Context, kind string, maxConn int) ([]ConnectionStat, error) {
72+
return ConnectionsPidMaxWithoutUidsWithContext(ctx, kind, 0, maxConn)
7373
}
7474

7575
func ConnectionsPidWithoutUids(kind string, pid int32) ([]ConnectionStat, error) {
@@ -80,14 +80,14 @@ func ConnectionsPidWithoutUidsWithContext(ctx context.Context, kind string, pid
8080
return ConnectionsPidMaxWithoutUidsWithContext(ctx, kind, pid, 0)
8181
}
8282

83-
func ConnectionsPidMaxWithoutUids(kind string, pid int32, max int) ([]ConnectionStat, error) {
84-
return ConnectionsPidMaxWithoutUidsWithContext(context.Background(), kind, pid, max)
83+
func ConnectionsPidMaxWithoutUids(kind string, pid int32, maxConn int) ([]ConnectionStat, error) {
84+
return ConnectionsPidMaxWithoutUidsWithContext(context.Background(), kind, pid, maxConn)
8585
}
8686

87-
func ConnectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, pid int32, max int) ([]ConnectionStat, error) {
88-
return connectionsPidMaxWithoutUidsWithContext(ctx, kind, pid, max)
87+
func ConnectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, pid int32, maxConn int) ([]ConnectionStat, error) {
88+
return connectionsPidMaxWithoutUidsWithContext(ctx, kind, pid, maxConn)
8989
}
9090

91-
func connectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, pid int32, max int) ([]ConnectionStat, error) {
91+
func connectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, pid int32, maxConn int) ([]ConnectionStat, error) {
9292
return []ConnectionStat{}, common.ErrNotImplementedError
9393
}

net/net_linux.go

+25-25
Original file line numberDiff line numberDiff line change
@@ -238,14 +238,14 @@ func FilterCountersWithContext(ctx context.Context) ([]FilterStat, error) {
238238
}
239239
stats := make([]FilterStat, 0, 1)
240240

241-
max, err := common.ReadInts(maxfile)
241+
maxConn, err := common.ReadInts(maxfile)
242242
if err != nil {
243243
return nil, err
244244
}
245245

246246
payload := FilterStat{
247247
ConnTrackCount: count[0],
248-
ConnTrackMax: max[0],
248+
ConnTrackMax: maxConn[0],
249249
}
250250

251251
stats = append(stats, payload)
@@ -396,12 +396,12 @@ func ConnectionsWithContext(ctx context.Context, kind string) ([]ConnectionStat,
396396

397397
// Return a list of network connections opened returning at most `max`
398398
// connections for each running process.
399-
func ConnectionsMax(kind string, max int) ([]ConnectionStat, error) {
400-
return ConnectionsMaxWithContext(context.Background(), kind, max)
399+
func ConnectionsMax(kind string, maxConn int) ([]ConnectionStat, error) {
400+
return ConnectionsMaxWithContext(context.Background(), kind, maxConn)
401401
}
402402

403-
func ConnectionsMaxWithContext(ctx context.Context, kind string, max int) ([]ConnectionStat, error) {
404-
return ConnectionsPidMaxWithContext(ctx, kind, 0, max)
403+
func ConnectionsMaxWithContext(ctx context.Context, kind string, maxConn int) ([]ConnectionStat, error) {
404+
return ConnectionsPidMaxWithContext(ctx, kind, 0, maxConn)
405405
}
406406

407407
// Return a list of network connections opened, omitting `Uids`.
@@ -415,8 +415,8 @@ func ConnectionsWithoutUidsWithContext(ctx context.Context, kind string) ([]Conn
415415
return ConnectionsMaxWithoutUidsWithContext(ctx, kind, 0)
416416
}
417417

418-
func ConnectionsMaxWithoutUidsWithContext(ctx context.Context, kind string, max int) ([]ConnectionStat, error) {
419-
return ConnectionsPidMaxWithoutUidsWithContext(ctx, kind, 0, max)
418+
func ConnectionsMaxWithoutUidsWithContext(ctx context.Context, kind string, maxConn int) ([]ConnectionStat, error) {
419+
return ConnectionsPidMaxWithoutUidsWithContext(ctx, kind, 0, maxConn)
420420
}
421421

422422
// Return a list of network connections opened by a process.
@@ -437,23 +437,23 @@ func ConnectionsPidWithoutUidsWithContext(ctx context.Context, kind string, pid
437437
}
438438

439439
// Return up to `max` network connections opened by a process.
440-
func ConnectionsPidMax(kind string, pid int32, max int) ([]ConnectionStat, error) {
441-
return ConnectionsPidMaxWithContext(context.Background(), kind, pid, max)
440+
func ConnectionsPidMax(kind string, pid int32, maxConn int) ([]ConnectionStat, error) {
441+
return ConnectionsPidMaxWithContext(context.Background(), kind, pid, maxConn)
442442
}
443443

444-
func ConnectionsPidMaxWithoutUids(kind string, pid int32, max int) ([]ConnectionStat, error) {
445-
return ConnectionsPidMaxWithoutUidsWithContext(context.Background(), kind, pid, max)
444+
func ConnectionsPidMaxWithoutUids(kind string, pid int32, maxConn int) ([]ConnectionStat, error) {
445+
return ConnectionsPidMaxWithoutUidsWithContext(context.Background(), kind, pid, maxConn)
446446
}
447447

448-
func ConnectionsPidMaxWithContext(ctx context.Context, kind string, pid int32, max int) ([]ConnectionStat, error) {
449-
return connectionsPidMaxWithoutUidsWithContext(ctx, kind, pid, max, false)
448+
func ConnectionsPidMaxWithContext(ctx context.Context, kind string, pid int32, maxConn int) ([]ConnectionStat, error) {
449+
return connectionsPidMaxWithoutUidsWithContext(ctx, kind, pid, maxConn, false)
450450
}
451451

452-
func ConnectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, pid int32, max int) ([]ConnectionStat, error) {
453-
return connectionsPidMaxWithoutUidsWithContext(ctx, kind, pid, max, true)
452+
func ConnectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, pid int32, maxConn int) ([]ConnectionStat, error) {
453+
return connectionsPidMaxWithoutUidsWithContext(ctx, kind, pid, maxConn, true)
454454
}
455455

456-
func connectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, pid int32, max int, skipUids bool) ([]ConnectionStat, error) {
456+
func connectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, pid int32, maxConn int, skipUids bool) ([]ConnectionStat, error) {
457457
tmap, ok := netConnectionKindMap[kind]
458458
if !ok {
459459
return nil, fmt.Errorf("invalid kind, %s", kind)
@@ -462,9 +462,9 @@ func connectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, p
462462
var err error
463463
var inodes map[string][]inodeMap
464464
if pid == 0 {
465-
inodes, err = getProcInodesAllWithContext(ctx, root, max)
465+
inodes, err = getProcInodesAllWithContext(ctx, root, maxConn)
466466
} else {
467-
inodes, err = getProcInodes(root, pid, max)
467+
inodes, err = getProcInodes(root, pid, maxConn)
468468
if len(inodes) == 0 {
469469
// no connection for the pid
470470
return []ConnectionStat{}, nil
@@ -543,7 +543,7 @@ func statsFromInodesWithContext(ctx context.Context, root string, pid int32, tma
543543
}
544544

545545
// getProcInodes returns fd of the pid.
546-
func getProcInodes(root string, pid int32, max int) (map[string][]inodeMap, error) {
546+
func getProcInodes(root string, pid int32, maxConn int) (map[string][]inodeMap, error) {
547547
ret := make(map[string][]inodeMap)
548548

549549
dir := fmt.Sprintf("%s/%d/fd", root, pid)
@@ -552,7 +552,7 @@ func getProcInodes(root string, pid int32, max int) (map[string][]inodeMap, erro
552552
return ret, err
553553
}
554554
defer f.Close()
555-
dirEntries, err := f.ReadDir(max)
555+
dirEntries, err := f.ReadDir(maxConn)
556556
if err != nil {
557557
return ret, err
558558
}
@@ -668,19 +668,19 @@ func (p *process) fillFromStatus(ctx context.Context) error {
668668
return nil
669669
}
670670

671-
func getProcInodesAll(root string, max int) (map[string][]inodeMap, error) {
672-
return getProcInodesAllWithContext(context.Background(), root, max)
671+
func getProcInodesAll(root string, maxConn int) (map[string][]inodeMap, error) {
672+
return getProcInodesAllWithContext(context.Background(), root, maxConn)
673673
}
674674

675-
func getProcInodesAllWithContext(ctx context.Context, root string, max int) (map[string][]inodeMap, error) {
675+
func getProcInodesAllWithContext(ctx context.Context, root string, maxConn int) (map[string][]inodeMap, error) {
676676
pids, err := PidsWithContext(ctx)
677677
if err != nil {
678678
return nil, err
679679
}
680680
ret := make(map[string][]inodeMap)
681681

682682
for _, pid := range pids {
683-
t, err := getProcInodes(root, pid, max)
683+
t, err := getProcInodes(root, pid, maxConn)
684684
if err != nil {
685685
// skip if permission error or no longer exists
686686
if os.IsPermission(err) || os.IsNotExist(err) || errors.Is(err, io.EOF) {

net/net_linux_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ func TestConnectionsMax(t *testing.T) {
113113
t.Skip("Skip CI")
114114
}
115115

116-
max := 10
117-
v, err := ConnectionsMax("tcp", max)
116+
maxConn := 10
117+
v, err := ConnectionsMax("tcp", maxConn)
118118
assert.Nil(t, err)
119119
assert.NotEmpty(t, v)
120120

@@ -125,7 +125,7 @@ func TestConnectionsMax(t *testing.T) {
125125
}
126126
}
127127
for _, c := range cxByPid {
128-
assert.True(t, c <= max)
128+
assert.True(t, c <= maxConn)
129129
}
130130
}
131131

net/net_unix.go

+13-13
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ func ConnectionsWithContext(ctx context.Context, kind string) ([]ConnectionStat,
2525

2626
// Return a list of network connections opened returning at most `max`
2727
// connections for each running process.
28-
func ConnectionsMax(kind string, max int) ([]ConnectionStat, error) {
29-
return ConnectionsMaxWithContext(context.Background(), kind, max)
28+
func ConnectionsMax(kind string, maxConn int) ([]ConnectionStat, error) {
29+
return ConnectionsMaxWithContext(context.Background(), kind, maxConn)
3030
}
3131

32-
func ConnectionsMaxWithContext(ctx context.Context, kind string, max int) ([]ConnectionStat, error) {
32+
func ConnectionsMaxWithContext(ctx context.Context, kind string, maxConn int) ([]ConnectionStat, error) {
3333
return []ConnectionStat{}, common.ErrNotImplementedError
3434
}
3535

@@ -180,11 +180,11 @@ func parseNetAddr(line string) (laddr Addr, raddr Addr, err error) {
180180
}
181181

182182
// Return up to `max` network connections opened by a process.
183-
func ConnectionsPidMax(kind string, pid int32, max int) ([]ConnectionStat, error) {
184-
return ConnectionsPidMaxWithContext(context.Background(), kind, pid, max)
183+
func ConnectionsPidMax(kind string, pid int32, maxConn int) ([]ConnectionStat, error) {
184+
return ConnectionsPidMaxWithContext(context.Background(), kind, pid, maxConn)
185185
}
186186

187-
func ConnectionsPidMaxWithContext(ctx context.Context, kind string, pid int32, max int) ([]ConnectionStat, error) {
187+
func ConnectionsPidMaxWithContext(ctx context.Context, kind string, pid int32, maxConn int) ([]ConnectionStat, error) {
188188
return []ConnectionStat{}, common.ErrNotImplementedError
189189
}
190190

@@ -199,8 +199,8 @@ func ConnectionsWithoutUidsWithContext(ctx context.Context, kind string) ([]Conn
199199
return ConnectionsMaxWithoutUidsWithContext(ctx, kind, 0)
200200
}
201201

202-
func ConnectionsMaxWithoutUidsWithContext(ctx context.Context, kind string, max int) ([]ConnectionStat, error) {
203-
return ConnectionsPidMaxWithoutUidsWithContext(ctx, kind, 0, max)
202+
func ConnectionsMaxWithoutUidsWithContext(ctx context.Context, kind string, maxConn int) ([]ConnectionStat, error) {
203+
return ConnectionsPidMaxWithoutUidsWithContext(ctx, kind, 0, maxConn)
204204
}
205205

206206
func ConnectionsPidWithoutUids(kind string, pid int32) ([]ConnectionStat, error) {
@@ -211,14 +211,14 @@ func ConnectionsPidWithoutUidsWithContext(ctx context.Context, kind string, pid
211211
return ConnectionsPidMaxWithoutUidsWithContext(ctx, kind, pid, 0)
212212
}
213213

214-
func ConnectionsPidMaxWithoutUids(kind string, pid int32, max int) ([]ConnectionStat, error) {
215-
return ConnectionsPidMaxWithoutUidsWithContext(context.Background(), kind, pid, max)
214+
func ConnectionsPidMaxWithoutUids(kind string, pid int32, maxConn int) ([]ConnectionStat, error) {
215+
return ConnectionsPidMaxWithoutUidsWithContext(context.Background(), kind, pid, maxConn)
216216
}
217217

218-
func ConnectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, pid int32, max int) ([]ConnectionStat, error) {
219-
return connectionsPidMaxWithoutUidsWithContext(ctx, kind, pid, max)
218+
func ConnectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, pid int32, maxConn int) ([]ConnectionStat, error) {
219+
return connectionsPidMaxWithoutUidsWithContext(ctx, kind, pid, maxConn)
220220
}
221221

222-
func connectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, pid int32, max int) ([]ConnectionStat, error) {
222+
func connectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, pid int32, maxConn int) ([]ConnectionStat, error) {
223223
return []ConnectionStat{}, common.ErrNotImplementedError
224224
}

net/net_windows.go

+10-10
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,11 @@ func getNetStatWithKind(kindType netConnectionKindType) ([]ConnectionStat, error
279279

280280
// Return a list of network connections opened returning at most `max`
281281
// connections for each running process.
282-
func ConnectionsMax(kind string, max int) ([]ConnectionStat, error) {
283-
return ConnectionsMaxWithContext(context.Background(), kind, max)
282+
func ConnectionsMax(kind string, maxConn int) ([]ConnectionStat, error) {
283+
return ConnectionsMaxWithContext(context.Background(), kind, maxConn)
284284
}
285285

286-
func ConnectionsMaxWithContext(ctx context.Context, kind string, max int) ([]ConnectionStat, error) {
286+
func ConnectionsMaxWithContext(ctx context.Context, kind string, maxConn int) ([]ConnectionStat, error) {
287287
return []ConnectionStat{}, common.ErrNotImplementedError
288288
}
289289

@@ -298,8 +298,8 @@ func ConnectionsWithoutUidsWithContext(ctx context.Context, kind string) ([]Conn
298298
return ConnectionsMaxWithoutUidsWithContext(ctx, kind, 0)
299299
}
300300

301-
func ConnectionsMaxWithoutUidsWithContext(ctx context.Context, kind string, max int) ([]ConnectionStat, error) {
302-
return ConnectionsPidMaxWithoutUidsWithContext(ctx, kind, 0, max)
301+
func ConnectionsMaxWithoutUidsWithContext(ctx context.Context, kind string, maxConn int) ([]ConnectionStat, error) {
302+
return ConnectionsPidMaxWithoutUidsWithContext(ctx, kind, 0, maxConn)
303303
}
304304

305305
func ConnectionsPidWithoutUids(kind string, pid int32) ([]ConnectionStat, error) {
@@ -310,15 +310,15 @@ func ConnectionsPidWithoutUidsWithContext(ctx context.Context, kind string, pid
310310
return ConnectionsPidMaxWithoutUidsWithContext(ctx, kind, pid, 0)
311311
}
312312

313-
func ConnectionsPidMaxWithoutUids(kind string, pid int32, max int) ([]ConnectionStat, error) {
314-
return ConnectionsPidMaxWithoutUidsWithContext(context.Background(), kind, pid, max)
313+
func ConnectionsPidMaxWithoutUids(kind string, pid int32, maxConn int) ([]ConnectionStat, error) {
314+
return ConnectionsPidMaxWithoutUidsWithContext(context.Background(), kind, pid, maxConn)
315315
}
316316

317-
func ConnectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, pid int32, max int) ([]ConnectionStat, error) {
318-
return connectionsPidMaxWithoutUidsWithContext(ctx, kind, pid, max)
317+
func ConnectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, pid int32, maxConn int) ([]ConnectionStat, error) {
318+
return connectionsPidMaxWithoutUidsWithContext(ctx, kind, pid, maxConn)
319319
}
320320

321-
func connectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, pid int32, max int) ([]ConnectionStat, error) {
321+
func connectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, pid int32, maxConn int) ([]ConnectionStat, error) {
322322
return []ConnectionStat{}, common.ErrNotImplementedError
323323
}
324324

0 commit comments

Comments
 (0)