mirror of
https://github.com/rqlite/rqlite.git
synced 2026-01-25 04:16:26 +00:00
Stricter queue batch logic
This commit is contained in:
@@ -168,7 +168,7 @@ func (q *Queue) run() {
|
||||
if len(queuedStmts) == 1 {
|
||||
timer.Reset(q.timeout)
|
||||
}
|
||||
if len(queuedStmts) >= q.batchSize {
|
||||
if len(queuedStmts) == q.batchSize {
|
||||
writeFn()
|
||||
}
|
||||
case <-timer.C:
|
||||
|
||||
Reference in New Issue
Block a user