From dd961fc53dde406a1bfdcdf949087dbed5d534fb Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 6 Mar 2019 10:50:42 -0800 Subject: [PATCH] modules/client/profile: Remove attempt at non-trivial designated initializers. --- modules/client/profile.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/client/profile.cc b/modules/client/profile.cc index 49af230bc..376a3f6e9 100644 --- a/modules/client/profile.cc +++ b/modules/client/profile.cc @@ -417,13 +417,12 @@ ircd::m::user::profile::fetch(const m::user &user, 64_KiB }; + m::v1::query::opts opts; + opts.remote = remote?: user.user_id.host(); + opts.dynamic = true; m::v1::query::profile federation_request { - user.user_id, key, buf, m::v1::query::opts - { - .remote = remote?: user.user_id.host(), - .dynamic = true, - } + user.user_id, key, buf, std::move(opts) }; federation_request.wait(seconds(remote_request_timeout));