mirror of
https://github.com/matrix-construct/construct
synced 2025-04-02 16:00:36 +02:00
modules/client/rooms/invite: Add conf item for remote operation timeout.
This commit is contained in:
parent
90f628d560
commit
da736eb438
1 changed files with 9 additions and 1 deletions
|
@ -15,9 +15,17 @@ namespace ircd::m
|
|||
static event::id::buf invite_remote(const event &);
|
||||
static void on_invite_remote(const event &, vm::eval &);
|
||||
|
||||
extern conf::item<seconds> invite_remote_timeout;
|
||||
extern hookfn<vm::eval &> invite_remote_hook;
|
||||
}
|
||||
|
||||
decltype(ircd::m::invite_remote_timeout)
|
||||
ircd::m::invite_remote_timeout
|
||||
{
|
||||
{ "name", "ircd.client.rooms.invite.remote.timeout" },
|
||||
{ "default", 15L },
|
||||
};
|
||||
|
||||
decltype(ircd::m::invite_remote_hook)
|
||||
ircd::m::invite_remote_hook
|
||||
{
|
||||
|
@ -199,7 +207,7 @@ try
|
|||
|
||||
http::code rcode; try
|
||||
{
|
||||
request.wait(seconds(10)); //TODO: conf
|
||||
request.wait(seconds(invite_remote_timeout));
|
||||
rcode = request.get();
|
||||
}
|
||||
catch(const http::error &e)
|
||||
|
|
Loading…
Add table
Reference in a new issue