forked from mirrors/statsd_exporter
Merge pull request #306 from chai-nadig/chai/set-flush-interval
Set Flush Interval on EventQueue
This commit is contained in:
commit
3630398b17
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