Skip to content

Commit

Permalink
Coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
Tectu committed Nov 22, 2024
1 parent 370d80c commit 0ca2a0c
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions lib/malloy/core/websocket/connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,17 @@ namespace malloy::websocket
[this, me, target, done = std::forward<Callback>(done), resource](auto ec, auto ep) mutable {
if (ec) {
done(ec);
} else {
me->on_connect(ec, ep, resource, [this, done = std::forward<Callback>(done)](auto ec) mutable {
go_active();
std::invoke(std::forward<decltype(done)>(done), ec);
});
}
else {
me->on_connect(
ec,
ep,
resource,
[this, done = std::forward<Callback>(done)](auto ec) mutable {
go_active();
std::invoke(std::forward<decltype(done)>(done), ec);
}
);
}
});
});
Expand Down

0 comments on commit 0ca2a0c

Please sign in to comment.