mirror of
https://github.com/matrix-construct/construct
synced 2025-01-13 08:23:56 +01:00
ircd:Ⓜ️:feds: Point to the opts in result struct.
This commit is contained in:
parent
cbad78ffc9
commit
08cd894cd0
2 changed files with 3 additions and 2 deletions
|
@ -41,6 +41,7 @@ namespace ircd::m::feds
|
|||
|
||||
struct ircd::m::feds::result
|
||||
{
|
||||
const opts *request;
|
||||
string_view origin;
|
||||
std::exception_ptr eptr;
|
||||
json::object object;
|
||||
|
|
|
@ -338,14 +338,14 @@ ircd::m::feds::handler(const opts &opts,
|
|||
const auto code{req.get()};
|
||||
const json::array &array{req.in.content};
|
||||
const json::object &object{req.in.content};
|
||||
if(!closure({req.origin, {}, object, array}))
|
||||
if(!closure({&opts, req.origin, {}, object, array}))
|
||||
return false;
|
||||
}
|
||||
catch(const std::exception &)
|
||||
{
|
||||
const ctx::exception_handler eptr;
|
||||
const std::exception_ptr &eptr_(eptr);
|
||||
if(!closure({req.origin, eptr_}))
|
||||
if(!closure({&opts, req.origin, eptr_}))
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue