Use CallLimiter2

This commit is contained in:
Daniel
2025-04-07 14:23:58 +02:00
parent cacf285260
commit 38d84b57b4
3 changed files with 7 additions and 7 deletions

View File

@@ -19,7 +19,7 @@ var (
// pidsByUserLock is also used for locking the socketInfo.PID on all socket.*Info structs.
pidsByUser = make(map[int][]int)
pidsByUserLock sync.RWMutex
fetchPidsByUser = utils.NewCallLimiter(10 * time.Millisecond)
fetchPidsByUser = utils.NewCallLimiter2(10 * time.Millisecond)
)
// getPidsByUser returns the cached PIDs for the given UID.