mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
modules/client/sync: Tweak next_batch case; add debuglog on timeout branch.
This commit is contained in:
parent
2b1c6682e6
commit
c0d0599b19
1 changed files with 10 additions and 1 deletions
|
@ -211,6 +211,13 @@ ircd::m::sync::empty_response(data &data,
|
|||
lex_cast(next_batch), json::STRING
|
||||
}
|
||||
};
|
||||
|
||||
log::debug
|
||||
{
|
||||
log, "request %s timeout next_batch:%lu",
|
||||
loghead(data),
|
||||
next_batch
|
||||
};
|
||||
}
|
||||
|
||||
ircd::const_buffer
|
||||
|
@ -623,7 +630,9 @@ ircd::m::sync::longpoll::handle(data &data,
|
|||
{
|
||||
const auto next
|
||||
{
|
||||
data.range.second
|
||||
data.event_idx?
|
||||
data.event_idx + 1:
|
||||
data.range.second
|
||||
};
|
||||
|
||||
json::stack::member
|
||||
|
|
Loading…
Reference in a new issue