mirror of
https://github.com/matrix-construct/construct
synced 2024-12-25 15:04:10 +01:00
modules/client/sync: Minor cleanup; stale comments.
This commit is contained in:
parent
6991ecc764
commit
4ec6cf3fab
1 changed files with 8 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue