ported example app, live_kit_client2 is done
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
// #[cfg(not(any(test, feature = "test-support")))]
|
||||
#[cfg(not(any(test, feature = "test-support")))]
|
||||
pub mod prod;
|
||||
|
||||
// #[cfg(not(any(test, feature = "test-support")))]
|
||||
#[cfg(not(any(test, feature = "test-support")))]
|
||||
pub use prod::*;
|
||||
|
||||
// #[cfg(any(test, feature = "test-support"))]
|
||||
// pub mod test;
|
||||
#[cfg(any(test, feature = "test-support"))]
|
||||
pub mod test;
|
||||
|
||||
// #[cfg(any(test, feature = "test-support"))]
|
||||
// pub use test::*;
|
||||
#[cfg(any(test, feature = "test-support"))]
|
||||
pub use test::*;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use anyhow::{anyhow, Result};
|
||||
use anyhow::{anyhow, Result, Context};
|
||||
use async_trait::async_trait;
|
||||
use collections::{BTreeMap, HashMap};
|
||||
use futures::Stream;
|
||||
@@ -364,7 +364,7 @@ impl Room {
|
||||
let token = token.to_string();
|
||||
async move {
|
||||
let server = TestServer::get(&url)?;
|
||||
server.join_room(token.clone(), this.clone()).await?;
|
||||
server.join_room(token.clone(), this.clone()).await.context("room join")?;
|
||||
*this.0.lock().connection.0.borrow_mut() = ConnectionState::Connected { url, token };
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user