[Clean]
This commit is contained in:
parent
ed8f482e5a
commit
0a30dc29bb
1 changed files with 9 additions and 10 deletions
|
|
@ -93,16 +93,15 @@ pub async fn get_room_metadata(call_id: Uuid) -> Result<String, ()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn set_room_metadata(call_id: Uuid, metadata: String) -> Result<(), ()> {
|
pub async fn set_room_metadata(call_id: Uuid, metadata: String) -> Result<(), ()> {
|
||||||
if let Ok((hostname, api_key, api_secret)) = get_livekit() {
|
let (hostname, api_key, api_secret) = get_livekit()?;
|
||||||
let room_service = RoomClient::with_api_key(&hostname, &api_key, &api_secret);
|
let room_service = RoomClient::with_api_key(&hostname, &api_key, &api_secret);
|
||||||
if let Ok(_) = room_service
|
|
||||||
|
room_service
|
||||||
.update_room_metadata(&call_id.to_string(), &metadata)
|
.update_room_metadata(&call_id.to_string(), &metadata)
|
||||||
.await
|
.await
|
||||||
{
|
.map_err(|_| ())?;
|
||||||
return Ok(());
|
|
||||||
}
|
Ok(())
|
||||||
}
|
|
||||||
return Err(());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn garbage_collect_calls() {
|
pub fn garbage_collect_calls() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue