0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

modules/federation/send: Add conf items for some pdu eval fetch vmopts.

This commit is contained in:
Jason Volk 2020-03-03 16:15:04 -08:00
parent 64b3edd591
commit 6a72671507

View file

@ -40,6 +40,20 @@ eval_max_per_node
{ "default", 1L },
};
conf::item<bool>
fetch_state
{
{ "name", "ircd.federation.send.fetch_state" },
{ "default", true },
};
conf::item<bool>
fetch_prev
{
{ "name", "ircd.federation.send.fetch_prev" },
{ "default", true },
};
void
handle_edu(client &client,
const m::resource::request::object<m::txn> &request,
@ -78,7 +92,8 @@ handle_pdus(client &client,
vmopts.nothrows &= ~m::vm::fault::INTERRUPT;
vmopts.node_id = request.origin;
vmopts.txn_id = txn_id;
vmopts.fetch_state = false;
vmopts.fetch_prev = bool(fetch_state);
vmopts.fetch_state = bool(fetch_prev);
m::vm::eval eval
{
pdus, vmopts