Fix: bump liveview salvo version to 0.44.1. (#1224) (#1130)

This commit is contained in:
xinglixing authored and GitHub committed 2023-06-28 14:10:18 -05:00
1 parent 98fc153152
commit fb227943ae
2 files changed
+5 -4

No files matched your search

+3 -2
View File
@@ -20,7 +20,8 @@ fn app(cx: Scope) -> Element {
async fn main() {
pretty_env_logger::init();
let addr: SocketAddr = ([127, 0, 0, 1], 3030).into();
let addr = "127.0.0.1:3030";
let acceptor = TcpListener::new(addr).bind().await;
let view = LiveViewPool::new();
@@ -31,7 +32,7 @@ async fn main() {
println!("Listening on http://{}", addr);
Server::new(TcpListener::bind(addr)).serve(router).await;
Server::new(acceptor).serve(router).await;
}
#[handler]