diff --git a/src/main/java/sirius/biz/analytics/events/EventRecorder.java b/src/main/java/sirius/biz/analytics/events/EventRecorder.java index 438e292f0..f73a36ae5 100644 --- a/src/main/java/sirius/biz/analytics/events/EventRecorder.java +++ b/src/main/java/sirius/biz/analytics/events/EventRecorder.java @@ -551,11 +551,10 @@ protected Event fetchBufferedEvent() { /// @param the type of the events to fetch /// @return a stream of events which match the given query public & UserEvent> Stream fetchUserEventsBlockwise(SmartQuery query) { - return StreamSupport.stream(new EventSpliterator(query, - List.of(UserEvent.USER_DATA.inner(UserData.SCOPE_ID), - UserEvent.USER_DATA.inner(UserData.TENANT_ID), - UserEvent.USER_DATA.inner(UserData.USER_ID))), - false); + return fetchEventsBlockwise(query, + List.of(UserEvent.USER_DATA.inner(UserData.SCOPE_ID), + UserEvent.USER_DATA.inner(UserData.TENANT_ID), + UserEvent.USER_DATA.inner(UserData.USER_ID))); } /// Fetches all events which match the given query considering the given duplicate preventer.