@@ -136,14 +136,15 @@ ClioApplication::run(bool const useNgWebServer)
136136 auto const migrationInspector = migration::makeMigrationInspector (config_, backend);
137137 // Check if any migration is blocking Clio server starting.
138138 if (migrationInspector->isBlockingClio () and backend->hardFetchLedgerRangeNoThrow ()) {
139- LOG (util::LogService::error ())
140- << " Existing Migration is blocking Clio, Please complete the database migration first." ;
139+ LOG (util::LogService::error ()) << " Existing Migration is blocking Clio, Please "
140+ " complete the database migration first." ;
141141 return EXIT_FAILURE;
142142 }
143143 }
144144
145145 // Manages clients subscribed to streams
146- auto subscriptions = feed::SubscriptionManager::makeSubscriptionManager (config_, backend, amendmentCenter);
146+ auto subscriptions =
147+ feed::SubscriptionManager::makeSubscriptionManager (config_, backend, amendmentCenter);
147148
148149 // Tracks which ledgers have been validated by the network
149150 auto ledgers = etl::NetworkValidatedLedgers::makeValidatedLedgers ();
@@ -156,7 +157,8 @@ ClioApplication::run(bool const useNgWebServer)
156157 config_, ioc, backend, subscriptions, std::make_unique<util::MTRandomGenerator>(), ledgers
157158 );
158159
159- // ETL is responsible for writing and publishing to streams. In read-only mode, ETL only publishes
160+ // ETL is responsible for writing and publishing to streams. In read-only mode, ETL only
161+ // publishes
160162 auto etl = etl::ETLService::makeETLService (
161163 config_, std::move (systemState), ctx, backend, subscriptions, balancer, ledgers
162164 );
@@ -169,15 +171,19 @@ ClioApplication::run(bool const useNgWebServer)
169171 );
170172
171173 using RPCEngineType = rpc::RPCEngine<rpc::Counters>;
172- auto const rpcEngine =
173- RPCEngineType::makeRPCEngine (config_, backend, balancer, dosGuard, workQueue, counters, handlerProvider);
174+ auto const rpcEngine = RPCEngineType::makeRPCEngine (
175+ config_, backend, balancer, dosGuard, workQueue, counters, handlerProvider
176+ );
174177
175178 if (useNgWebServer or config_.get <bool >(" server.__ng_web_server" )) {
176- web::ng::RPCServerHandler<RPCEngineType> handler{config_, backend, rpcEngine, etl, dosGuard};
179+ web::ng::RPCServerHandler<RPCEngineType> handler{
180+ config_, backend, rpcEngine, etl, dosGuard
181+ };
177182
178183 auto expectedAdminVerifier = web::makeAdminVerificationStrategy (config_);
179184 if (not expectedAdminVerifier.has_value ()) {
180- LOG (util::LogService::error ()) << " Error creating admin verifier: " << expectedAdminVerifier.error ();
185+ LOG (util::LogService::error ())
186+ << " Error creating admin verifier: " << expectedAdminVerifier.error ();
181187 return EXIT_FAILURE;
182188 }
183189 auto const adminVerifier = std::move (expectedAdminVerifier).value ();
@@ -226,12 +232,21 @@ ClioApplication::run(bool const useNgWebServer)
226232 }
227233
228234 // Init the web server
229- auto handler = std::make_shared<web::RPCServerHandler<RPCEngineType>>(config_, backend, rpcEngine, etl, dosGuard);
235+ auto handler = std::make_shared<web::RPCServerHandler<RPCEngineType>>(
236+ config_, backend, rpcEngine, etl, dosGuard
237+ );
230238
231239 auto const httpServer = web::makeHttpServer (config_, ioc, dosGuard, handler, cache);
232240 appStopper_.setOnStop (
233241 Stopper::makeOnStopCallback (
234- *httpServer, *balancer, *etl, *subscriptions, *backend, cacheSaver, clusterCommunicationService, ioc
242+ *httpServer,
243+ *balancer,
244+ *etl,
245+ *subscriptions,
246+ *backend,
247+ cacheSaver,
248+ clusterCommunicationService,
249+ ioc
235250 )
236251 );
237252
0 commit comments