0
0
Fork 0
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:
Jason Volk 2019-04-18 04:15:13 -07:00
parent cbad78ffc9
commit 08cd894cd0
2 changed files with 3 additions and 2 deletions

View file

@ -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;

View file

@ -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;
}