diff --git a/rpc/rpc_impl.hh b/rpc/rpc_impl.hh index b7c4223eeb..418499cde0 100644 --- a/rpc/rpc_impl.hh +++ b/rpc/rpc_impl.hh @@ -156,7 +156,7 @@ template struct rcv_reply : rcv_reply_base { inline future<> get_reply(typename protocol::client& dst) { return unmarshall(dst.serializer(), dst.in(), std::tie(this->u.v)).then([this] { - this->set_value(this->u.v); + this->set_value(std::move(this->u.v)); }); } }; @@ -165,7 +165,7 @@ template struct rcv_reply> : rcv_reply_base, T...> { inline future<> get_reply(typename protocol::client& dst) { return unmarshall(dst.serializer(), dst.in(), ref_tuple(this->u.v)).then([this] { - this->set_value(this->u.v); + this->set_value(std::move(this->u.v)); }); } };