mirror of
https://github.com/matrix-construct/construct
synced 2024-10-01 05:08:59 +02:00
modules/client/sync: Try to ensure all next_batch tokens are limited to the upper bound.
This commit is contained in:
parent
1ce9ec3f8e
commit
4e618175c7
1 changed files with 2 additions and 2 deletions
|
@ -380,7 +380,7 @@ try
|
|||
last && completed?
|
||||
data.range.second:
|
||||
last?
|
||||
last + 1:
|
||||
std::min(last + 1, data.range.second):
|
||||
0UL
|
||||
};
|
||||
|
||||
|
@ -651,7 +651,7 @@ ircd::m::sync::longpoll::handle(data &data,
|
|||
const auto next
|
||||
{
|
||||
data.event_idx?
|
||||
data.event_idx + 1:
|
||||
std::min(data.event_idx + 1, vm::current_sequence + 1):
|
||||
data.range.first
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue