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), }