From 1abfe288066097ab0a8133f55e302a9aee9bb5ce Mon Sep 17 00:00:00 2001 From: Tyler Neely Date: Fri, 4 Nov 2022 15:11:32 +0000 Subject: [PATCH] Correctly use a moved transport interface while constructing CoordinatorWorker --- src/coordinator/coordinator_worker.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/coordinator/coordinator_worker.hpp b/src/coordinator/coordinator_worker.hpp index 600ebdc31..46bc546cd 100644 --- a/src/coordinator/coordinator_worker.hpp +++ b/src/coordinator/coordinator_worker.hpp @@ -129,7 +129,9 @@ class CoordinatorWorker { public: CoordinatorWorker(io::Io io, Queue queue, Coordinator coordinator) - : io_(io), queue_(std::move(queue)), coordinator_{std::move(io.ForkLocal()), {}, std::move(coordinator)} {} + : io_(std::move(io)), + queue_(std::move(queue)), + coordinator_{std::move(io_.ForkLocal()), {}, std::move(coordinator)} {} CoordinatorWorker(CoordinatorWorker &&) noexcept = default; CoordinatorWorker &operator=(CoordinatorWorker &&) noexcept = default;