Fixing issue with query flooding

This commit is contained in:
Armon Dadgar 2014-07-10 10:58:39 -07:00
parent 70462deb06
commit decec489d7

View File

@ -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: