From 2f50168184603809e14ca81a21e0cd79ffc7b2ff Mon Sep 17 00:00:00 2001 From: Maya Date: Sat, 22 Nov 2025 00:31:22 -0500 Subject: [PATCH] add connection info to server --- backend/src/bin/server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/bin/server.rs b/backend/src/bin/server.rs index db87a9ac..1e10953d 100644 --- a/backend/src/bin/server.rs +++ b/backend/src/bin/server.rs @@ -1,4 +1,4 @@ -use std::{sync::Arc, time::Duration}; +use std::{net::SocketAddr, sync::Arc, time::Duration}; use axum::{ Extension, Router, @@ -267,7 +267,7 @@ async fn main() -> anyhow::Result<()> { // Spawn server in background tokio::spawn(async move { - axum::serve(listener, app).await.unwrap(); + axum::serve(listener, app.into_make_service_with_connect_info::()).await.unwrap(); }); // Start cron for discovery scheduler