From 5323320de9bb4d3e79ea115bd8f3da7177a0db10 Mon Sep 17 00:00:00 2001 From: Neil Dwyer Date: Mon, 15 Jul 2024 13:16:17 -0700 Subject: [PATCH] update -> set --- livekit-ffi/src/server/room.rs | 6 +++--- livekit/src/room/participant/local_participant.rs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/livekit-ffi/src/server/room.rs b/livekit-ffi/src/server/room.rs index bbd98ded..064cdfca 100644 --- a/livekit-ffi/src/server/room.rs +++ b/livekit-ffi/src/server/room.rs @@ -437,7 +437,7 @@ impl RoomInner { let res = inner .room .local_participant() - .update_metadata(update_local_metadata.metadata) + .set_metadata(update_local_metadata.metadata) .await; let _ = server.send_event(proto::ffi_event::Message::UpdateLocalMetadata( @@ -456,7 +456,7 @@ impl RoomInner { let async_id = server.next_id(); let inner = self.clone(); let handle = server.async_runtime.spawn(async move { - let res = inner.room.local_participant().update_name(update_local_name.name).await; + let res = inner.room.local_participant().set_name(update_local_name.name).await; let _ = server.send_event(proto::ffi_event::Message::UpdateLocalName( proto::SetLocalNameCallback { async_id, error: res.err().map(|e| e.to_string()) }, @@ -477,7 +477,7 @@ impl RoomInner { let res = inner .room .local_participant() - .update_attributes(update_local_attributes.attributes) + .set_attributes(update_local_attributes.attributes) .await; let _ = server.send_event(proto::ffi_event::Message::UpdateLocalAttributes( diff --git a/livekit/src/room/participant/local_participant.rs b/livekit/src/room/participant/local_participant.rs index 3e5dd980..3ba0ba0c 100644 --- a/livekit/src/room/participant/local_participant.rs +++ b/livekit/src/room/participant/local_participant.rs @@ -223,7 +223,7 @@ impl LocalParticipant { Ok(publication) } - pub async fn update_metadata(&self, metadata: String) -> RoomResult<()> { + pub async fn set_metadata(&self, metadata: String) -> RoomResult<()> { self.inner .rtc_engine .send_request(proto::signal_request::Message::UpdateMetadata( @@ -237,7 +237,7 @@ impl LocalParticipant { Ok(()) } - pub async fn update_attributes(&self, attributes: HashMap) -> RoomResult<()> { + pub async fn set_attributes(&self, attributes: HashMap) -> RoomResult<()> { self.inner .rtc_engine .send_request(proto::signal_request::Message::UpdateMetadata( @@ -251,7 +251,7 @@ impl LocalParticipant { Ok(()) } - pub async fn update_name(&self, name: String) -> RoomResult<()> { + pub async fn set_name(&self, name: String) -> RoomResult<()> { self.inner .rtc_engine .send_request(proto::signal_request::Message::UpdateMetadata(