Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
The-EDev committed Mar 16, 2022
1 parent c858078 commit 69feb9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion include/crow/app.h
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,9 @@ namespace crow
/// Non-blocking version of \ref run()
std::future<void> run_async()
{
return std::async(std::launch::async, [&] {this->run();});
return std::async(std::launch::async, [&] {
this->run();
});
}

/// Stop the server
Expand Down
2 changes: 1 addition & 1 deletion tests/unittest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ TEST_CASE("multi_server")
return "B";
});

auto _ = app1.bindaddr(LOCALHOST_ADDRESS).port(45451).run_async();
auto _ = app1.bindaddr(LOCALHOST_ADDRESS).port(45451).run_async();
auto _2 = app2.bindaddr(LOCALHOST_ADDRESS).port(45452).run_async();
app1.wait_for_server_start();
app2.wait_for_server_start();
Expand Down

0 comments on commit 69feb9c

Please sign in to comment.