8000 Refactor rest handlers into coroutines by goedderz · Pull Request #21750 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

Refactor rest handlers into coroutines #21750

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
May 15, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Move co_await into try/catch
  • Loading branch information
goedderz committed May 15, 2025
commit c0d6b29566eba231c18e5742bb48cf497a8804fc
4 changes: 2 additions & 2 deletions arangod/Agency/RestAgencyHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ auto RestAgencyHandler::pollIndex(index_t const& start, double const& timeout)
auto pollResult = _agent->poll(start, timeout);

if (std::get<1>(pollResult)) {
auto rb = co_await std::move(std::get<0>(pollResult));

try {
auto rb = co_await std::move(std::get<0>(pollResult));

VPackSlice res = rb->slice();

if (res.isObject() && res.hasKey("result")) {
Expand Down
0