MCPcopy
hub / github.com/netdata/netdata / newRateLimiter

Function newRateLimiter

src/go/logger/ratelimit.go:46–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44}
45
46func newRateLimiter() *rateLimiter {
47 return &rateLimiter{
48 entries: make(map[limitKey]*limitEntry),
49 sweepEvery: rateLimiterSweepEvery,
50 ttl: rateLimiterTTL,
51 now: time.Now,
52 }
53}
54
55type LimitedLogger struct {
56 l *Logger

Callers 3

newTestLoggerFunction · 0.85
newLoggerFunction · 0.85
newDepthTestLoggerFunction · 0.85

Calls

no outgoing calls

Tested by 2

newTestLoggerFunction · 0.68
newDepthTestLoggerFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…