From 4b5195d891804f9a911c0736c6b5ff2835619697 Mon Sep 17 00:00:00 2001 From: Richard Shiue <71320345+richardshiue@users.noreply.github.com> Date: Sun, 10 Mar 2024 16:02:30 +0800 Subject: [PATCH] ci: fix rust ci (#4861) --- .github/workflows/rust_ci.yaml | 2 +- frontend/rust-lib/flowy-server/src/af_cloud/server.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust_ci.yaml b/.github/workflows/rust_ci.yaml index 9cca48942d..4b30b0043a 100644 --- a/.github/workflows/rust_ci.yaml +++ b/.github/workflows/rust_ci.yaml @@ -91,7 +91,7 @@ jobs: RUST_LOG: info RUST_BACKTRACE: 1 af_cloud_test_base_url: http://localhost - af_cloud_test_ws_url: ws://localhost/ws + af_cloud_test_ws_url: ws://localhost/ws/v1 af_cloud_test_gotrue_url: http://localhost/gotrue run: cargo test --no-default-features --features="rev-sqlite,dart" -- --nocapture diff --git a/frontend/rust-lib/flowy-server/src/af_cloud/server.rs b/frontend/rust-lib/flowy-server/src/af_cloud/server.rs index ef5522f9aa..27f31dab1d 100644 --- a/frontend/rust-lib/flowy-server/src/af_cloud/server.rs +++ b/frontend/rust-lib/flowy-server/src/af_cloud/server.rs @@ -259,7 +259,7 @@ fn spawn_ws_conn( tokio::time::sleep(Duration::from_secs(2)).await; event!(tracing::Level::INFO, "🟢reconnecting websocket"); - let _ = ws_client.connect(&api_client.ws_addr(), conn_info).await; + let _ = ws_client.connect(api_client.ws_addr(), conn_info).await; }, Err(err) => error!("Failed to get ws url: {}, connect state:{:?}", err, state), } @@ -291,7 +291,7 @@ fn spawn_ws_conn( { match api_client.ws_connect_info().await { Ok(conn_info) => { - let _ = ws_client.connect(&api_client.ws_addr(), conn_info).await; + let _ = ws_client.connect(api_client.ws_addr(), conn_info).await; }, Err(err) => error!("Failed to get ws url: {}", err), }