0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-26 18:38:52 +02:00

ircd:Ⓜ️:sync: Increase token buffer; use function reference.

This commit is contained in:
Jason Volk 2019-09-23 14:06:52 -07:00
parent b518820357
commit 183acf8efc
2 changed files with 3 additions and 3 deletions

View file

@ -45,7 +45,7 @@ get__members(client &client,
}; };
// Acquire the at/since parameter from query string. // Acquire the at/since parameter from query string.
char atbuf[48]; char atbuf[64];
const string_view at const string_view at
{ {
url::decode(atbuf, request.query["at"]) url::decode(atbuf, request.query["at"])

View file

@ -263,7 +263,7 @@ ircd::m::sync::handle_get(client &client,
json::stack out json::stack out
{ {
response.buf, response.buf,
std::bind(&sync::flush, std::ref(data), std::ref(response), ph::_1), std::bind(sync::flush, std::ref(data), std::ref(response), ph::_1),
size_t(flush_hiwat) size_t(flush_hiwat)
}; };
data.out = &out; data.out = &out;
@ -483,7 +483,7 @@ try
int64_t(data.range.second) int64_t(data.range.second)
}; };
char buf[48]; char buf[64];
const string_view &next_batch_token const string_view &next_batch_token
{ {
// The polylog phased since token. We pack two numbers separted by a '_' // The polylog phased since token. We pack two numbers separted by a '_'