Update AsyncTdMiddleEventBusServer.java

This commit is contained in:
Andrea Cavalli 2021-01-14 21:09:44 +01:00
parent 606cd23deb
commit e9dd378765
1 changed files with 1 additions and 0 deletions

View File

@ -240,6 +240,7 @@ public class AsyncTdMiddleEventBusServer {
.replace(" = ", "="));
}
}).bufferTimeout(tdOptions.getEventsSize(), local ? Duration.ofMillis(1) : Duration.ofMillis(100))
.filter(l -> !l.isEmpty())
.windowTimeout(1, Duration.ofSeconds(5))
.flatMap(w -> w.defaultIfEmpty(Collections.emptyList()))
.map(TdResultList::new).doFinally(s -> {