File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -271,11 +271,6 @@ pub async fn run_server(
271271 max_response_body_size : u32 ,
272272 max_concurrent_connections : u32 ,
273273) -> Result < ( JoinHandle < ( ) > , std:: net:: SocketAddr ) > {
274- // Create a `TcpListener` using tokio.
275- let listener = TcpListener :: bind ( & format ! ( "0.0.0.0:{}" , port) )
276- . await
277- . expect ( "Failed to bind to indexer-service port" ) ;
278-
279274 // Setting up the JSON RPC server
280275 let rpc_impl = RpcImpl {
281276 wallet,
@@ -322,6 +317,11 @@ pub async fn run_server(
322317 } ,
323318 ) ;
324319
320+ // Create a `TcpListener` using tokio.
321+ let listener = TcpListener :: bind ( & format ! ( "0.0.0.0:{}" , port) )
322+ . await
323+ . expect ( "Failed to bind to tap-aggregator port" ) ;
324+
325325 let addr = listener. local_addr ( ) ?;
326326 let handle = tokio:: spawn ( async move {
327327 if let Err ( e) = axum:: serve ( listener, Shared :: new ( service) )
You can’t perform that action at this time.
0 commit comments