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:
parent
ddb69ca01c
commit
157805d97b
1 changed files with 3 additions and 7 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue