client: reorg context Pvt

This commit is contained in:
Michael Davidsaver
2020-12-30 09:00:47 -08:00
parent bcc46f0389
commit c4d2cd4a10
8 changed files with 92 additions and 98 deletions
+3 -2
View File
@@ -180,7 +180,9 @@ std::shared_ptr<Operation> GetBuilder::_exec_info()
if(!ctx)
throw std::logic_error("NULL Builder");
auto op(std::make_shared<InfoOp>(ctx->tcp_loop));
auto context(ctx->impl->shared_from_this());
auto op(std::make_shared<InfoOp>(context->tcp_loop));
if(_result) {
op->done = std::move(_result);
} else {
@@ -207,7 +209,6 @@ std::shared_ptr<Operation> GetBuilder::_exec_info()
});
auto name(std::move(_name));
auto context(ctx->shared_from_this());
context->tcp_loop.dispatch([op, context, name]() {
// on worker