0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-12 04:51:08 +01:00

modules/client/sync: Simplify next_batch token decision after linear and longpoll.

This commit is contained in:
Jason Volk 2019-03-02 11:43:35 -08:00
parent ddb69ca01c
commit 157805d97b

View file

@ -591,8 +591,6 @@ ircd::m::sync::longpoll::handle(data &data,
{
const auto next
{
event.event_idx?
event.event_idx + 1:
data.range.second
};
@ -606,11 +604,9 @@ ircd::m::sync::longpoll::handle(data &data,
log::debug
{
log, "request %s longpoll %lu:%lu vm:%lu complete",
log, "request %s longpoll got:%lu complete",
loghead(data),
event.event_idx,
next,
vm::current_sequence
event.event_idx
};
}
else checkpoint.rollback();