0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-02 21:59:02 +02:00

ircd:Ⓜ️:vm: Add commitopts (copts) to vm::accepted structure.

This commit is contained in:
Jason Volk 2018-09-05 19:29:41 -07:00
parent cffe958d2b
commit 6858ea2bb1
4 changed files with 8 additions and 4 deletions

View file

@ -261,11 +261,13 @@ struct ircd::m::vm::accepted
{
ctx::ctx *context;
const vm::opts *opts;
const vm::copts *copts;
const event::conforms *report;
shared_buffer<mutable_buffer> strung;
accepted(const m::event &event,
const vm::opts *const &opts,
const vm::copts *const &copts,
const event::conforms *const &report);
};

View file

@ -718,10 +718,12 @@ ircd::m::vm::phase::operator()(eval &eval)
ircd::m::vm::accepted::accepted(const m::event &event,
const vm::opts *const &opts,
const vm::copts *const &copts,
const event::conforms *const &report)
:m::event{event}
,context{ctx::current}
,opts{opts}
,copts{copts}
,report{report}
{
}

View file

@ -3564,7 +3564,7 @@ console_cmd__stage__broadcast(opt &out, const string_view &line)
{
const m::vm::opts opts;
const m::event event{stage.at(i)};
m::vm::accepted a{event, &opts, &opts.report};
m::vm::accepted a{event, &opts, nullptr, &opts.report};
m::vm::accept(a);
}
@ -3880,7 +3880,7 @@ console_cmd__event__sign(opt &out, const string_view &line)
const m::vm::opts opts;
m::vm::accepted a
{
event, &opts, &opts.report
event, &opts, nullptr, &opts.report
};
m::vm::accept(a);
@ -6797,7 +6797,7 @@ console_cmd__feds__resend(opt &out, const string_view &line)
};
const m::vm::opts opts;
m::vm::accepted a{event, &opts, &opts.report};
m::vm::accepted a{event, &opts, nullptr, &opts.report};
m::vm::accept(a);
return true;
}

View file

@ -477,7 +477,7 @@ try
vm::accepted accepted
{
event, &opts, &report
event, &opts, eval.copts, &report
};
if(opts.effects)