mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-11-29 10:41:00 +00:00
Set Flush Interval on EventQueue
Signed-off-by: Chai Nadig <chaitanya.nadig@gmail.com>
This commit is contained in:
parent
2898eb8c0c
commit
d804941a18
1 changed files with 1 additions and 0 deletions
|
@ -84,6 +84,7 @@ func NewEventQueue(c chan Events, flushThreshold int, flushInterval time.Duratio
|
||||||
eq := &EventQueue{
|
eq := &EventQueue{
|
||||||
C: c,
|
C: c,
|
||||||
flushThreshold: flushThreshold,
|
flushThreshold: flushThreshold,
|
||||||
|
flushInterval: flushInterval,
|
||||||
flushTicker: ticker,
|
flushTicker: ticker,
|
||||||
q: make([]Event, 0, flushThreshold),
|
q: make([]Event, 0, flushThreshold),
|
||||||
eventsFlushed: eventsFlushed,
|
eventsFlushed: eventsFlushed,
|
||||||
|
|
Loading…
Reference in a new issue