mirror of
https://github.com/matrix-construct/construct
synced 2024-06-10 05:58:56 +02:00
modules/s_fetch: Simplify origin selection branch.
This commit is contained in:
parent
889b65a002
commit
474dff9f9f
|
@ -822,7 +822,10 @@ ircd::m::fetch::start(request &request)
|
|||
{
|
||||
m::v1::event::opts opts;
|
||||
opts.dynamic = true;
|
||||
opts.remote = request.origin?: select_random_origin(request);
|
||||
if(!request.origin)
|
||||
select_random_origin(request);
|
||||
|
||||
opts.remote = request.origin;
|
||||
return start(request, opts);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue