mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
ircd:Ⓜ️:v1: Add conf item for fetch_head timeout.
This commit is contained in:
parent
d4e35476a3
commit
d3805b410e
1 changed files with 8 additions and 1 deletions
|
@ -973,6 +973,13 @@ ircd::m::v1::version::version(const mutable_buffer &buf,
|
|||
// v1/v1.h
|
||||
//
|
||||
|
||||
ircd::conf::item<ircd::milliseconds>
|
||||
fetch_head_timeout
|
||||
{
|
||||
{ "name", "ircd.m.v1.fetch_head.timeout" },
|
||||
{ "default", 30 * 1000L },
|
||||
};
|
||||
|
||||
ircd::m::event::id::buf
|
||||
ircd::m::v1::fetch_head(const id::room &room_id,
|
||||
const net::hostport &remote)
|
||||
|
@ -997,7 +1004,7 @@ ircd::m::v1::fetch_head(const id::room &room_id,
|
|||
room_id, user_id, buf, std::move(opts)
|
||||
};
|
||||
|
||||
request.wait(seconds(10)); //TODO: conf
|
||||
request.wait(milliseconds(fetch_head_timeout));
|
||||
request.get();
|
||||
|
||||
const json::object proto
|
||||
|
|
Loading…
Reference in a new issue