Fixing issue with query flooding
This commit is contained in:
parent
70462deb06
commit
decec489d7
@ -217,7 +217,10 @@ func (c *client) query(params *QueryParam) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check if this entry is complete
|
// Check if this entry is complete
|
||||||
if inp.complete() && !inp.sent {
|
if inp.complete() {
|
||||||
|
if inp.sent {
|
||||||
|
continue
|
||||||
|
}
|
||||||
inp.sent = true
|
inp.sent = true
|
||||||
select {
|
select {
|
||||||
case params.Entries <- inp:
|
case params.Entries <- inp:
|
||||||
|
Loading…
Reference in New Issue
Block a user