mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 00:34:18 +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
|
&& !args.semaphore
|
||||||
};
|
};
|
||||||
|
|
||||||
// Determine if an empty sync response should be returned to the user.
|
// The return value from the operation will be false if no output was
|
||||||
// This is done by actually performing the sync operation based on the
|
// generated by the sync operation, indicating we should finally send an
|
||||||
// mode decided. The return value from the operation will be false if
|
// empty response.
|
||||||
// no output was generated by the sync operation, indicating we should
|
|
||||||
// finally send an empty response.
|
|
||||||
const bool complete
|
const bool complete
|
||||||
{
|
{
|
||||||
should_linear?
|
should_linear?
|
||||||
linear_handle(data):
|
linear_handle(data):
|
||||||
|
|
||||||
should_polylog?
|
should_polylog?
|
||||||
polylog_handle(data):
|
polylog_handle(data):
|
||||||
false
|
|
||||||
|
false
|
||||||
};
|
};
|
||||||
|
|
||||||
if(complete)
|
if(complete)
|
||||||
|
@ -367,11 +367,10 @@ ircd::m::sync::handle_get(client &client,
|
||||||
{
|
{
|
||||||
polylog_only?
|
polylog_only?
|
||||||
data.range.first:
|
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);
|
empty_response(data, next_batch);
|
||||||
return std::move(response);
|
return std::move(response);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue