Skip to content

Commit

Permalink
Move Request::resolve co_await up before visit
Browse files Browse the repository at this point in the history
  • Loading branch information
wravery committed May 8, 2022
1 parent 1e217ad commit b07ad02
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/GraphQLService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1794,9 +1794,8 @@ response::AwaitableValue Request::resolve(RequestResolveParams params) const
std::move(params.variables),
std::move(fragments));

operationVisitor.visit(operationDefinition.first, *operationDefinition.second);

co_await params.launch;
operationVisitor.visit(operationDefinition.first, *operationDefinition.second);

auto result = co_await operationVisitor.getValue();
response::Value document { response::Type::Map };
Expand Down

0 comments on commit b07ad02

Please sign in to comment.