Skip to content

Commit 3fa1a07

Browse files
committed
revert accidentally commited experiment
1 parent 46765ef commit 3fa1a07

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

core/src/main/java/io/questdb/client/cutlass/qwp/client/QwpWebSocketSender.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,10 +1344,10 @@ private boolean shouldAutoFlush() {
13441344
if (autoFlushBytes > 0 && getPendingBytes() >= autoFlushBytes) {
13451345
return true;
13461346
}
1347-
// if (autoFlushIntervalNanos > 0) {
1348-
// long ageNanos = System.nanoTime() - firstPendingRowTimeNanos;
1349-
// return ageNanos >= autoFlushIntervalNanos;
1350-
// }
1347+
if (autoFlushIntervalNanos > 0) {
1348+
long ageNanos = System.nanoTime() - firstPendingRowTimeNanos;
1349+
return ageNanos >= autoFlushIntervalNanos;
1350+
}
13511351
return false;
13521352
}
13531353

0 commit comments

Comments
 (0)