0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 08:42:34 +01: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 lex_cast(next_batch), json::STRING
} }
}; };
log::debug
{
log, "request %s timeout next_batch:%lu",
loghead(data),
next_batch
};
} }
ircd::const_buffer ircd::const_buffer
@ -623,7 +630,9 @@ ircd::m::sync::longpoll::handle(data &data,
{ {
const auto next const auto next
{ {
data.range.second data.event_idx?
data.event_idx + 1:
data.range.second
}; };
json::stack::member json::stack::member