0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-03 06:08:52 +02:00

modules/client/sync: Tweak next_batch case; add debuglog on timeout branch.

This commit is contained in:
Jason Volk 2019-03-08 14:17:52 -08:00
parent 2b1c6682e6
commit c0d0599b19

View file

@ -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