mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 05:55:51 +00:00
Make it easier to insert code between when the server is setup and when it's started.
This commit is contained in:
@@ -17,9 +17,14 @@ extern bool AddSystemEntropy();
|
||||
using namespace std;
|
||||
using namespace boost::unit_test;
|
||||
|
||||
void startServer()
|
||||
void setupServer()
|
||||
{
|
||||
theApp = new Application();
|
||||
theApp->setup();
|
||||
}
|
||||
|
||||
void startServer()
|
||||
{
|
||||
theApp->run(); // Blocks till we get a stop RPC.
|
||||
}
|
||||
|
||||
@@ -194,6 +199,7 @@ int main(int argc, char* argv[])
|
||||
else if (!vm.count("parameters"))
|
||||
{
|
||||
// No arguments. Run server.
|
||||
setupServer();
|
||||
startServer();
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user