Skip to content

Commit 146e168

Browse files
committed
update comment and put it closer
Signed-off-by: Gustavo Inacio <[email protected]>
1 parent 6afaf9c commit 146e168

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tap_aggregator/src/server.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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))

0 commit comments

Comments
 (0)