0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-24 17:38:54 +02: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,9 +591,7 @@ ircd::m::sync::longpoll::handle(data &data,
{
const auto next
{
event.event_idx?
event.event_idx + 1:
data.range.second
data.range.second
};
json::stack::member
@ -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();