ported example app, live_kit_client2 is done
This commit is contained in:
parent
244e8ce101
commit
51fa80ef06
3 changed files with 159 additions and 156 deletions
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue