0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 07:23:53 +01:00

modules/client/sync: Minor cleanup; stale comments.

This commit is contained in:
Jason Volk 2020-12-21 06:49:26 -08:00
parent 6991ecc764
commit 4ec6cf3fab

View file

@ -343,18 +343,18 @@ ircd::m::sync::handle_get(client &client,
&& !args.semaphore
};
// Determine if an empty sync response should be returned to the user.
// This is done by actually performing the sync operation based on the
// mode decided. The return value from the operation will be false if
// no output was generated by the sync operation, indicating we should
// finally send an empty response.
// The return value from the operation will be false if no output was
// generated by the sync operation, indicating we should finally send an
// empty response.
const bool complete
{
should_linear?
linear_handle(data):
should_polylog?
polylog_handle(data):
false
false
};
if(complete)
@ -367,11 +367,10 @@ ircd::m::sync::handle_get(client &client,
{
polylog_only?
data.range.first:
data.range.second
data.range.second
};
// A user-timeout occurred. According to the spec we return a
// 200 with empty fields rather than a 408.
empty_response(data, next_batch);
return std::move(response);
}