Skip to content

Commit

Permalink
src: lib: web: change address type to SocketAddrV4
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoantoniocardoso committed Nov 13, 2024
1 parent 8a7bc4e commit abc4888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/web/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ struct AppState {

type ClientSender = mpsc::UnboundedSender<Message>;

pub async fn run(address: String) {
pub async fn run(address: std::net::SocketAddrV4) {
let router = SERVER.router.lock().unwrap().clone();

let mut interval = tokio::time::interval(tokio::time::Duration::from_secs(1));
Expand Down

0 comments on commit abc4888

Please sign in to comment.