fix: don't borrow self as mut to join workspace

This commit is contained in:
zaaarf 2024-03-09 17:20:40 +01:00
parent bc2469d7e1
commit 4694a01c9b

View file

@ -109,7 +109,7 @@ impl Client {
} }
/// join a workspace, returns an [tokio::sync::RwLock] to interact with it /// join a workspace, returns an [tokio::sync::RwLock] to interact with it
pub async fn join_workspace(&mut self, workspace: &str) -> crate::Result<Arc<Workspace>> { pub async fn join_workspace(&self, workspace: &str) -> crate::Result<Arc<Workspace>> {
let ws_stream = self.services.workspace.clone().attach(Empty{}.into_request()).await?.into_inner(); let ws_stream = self.services.workspace.clone().attach(Empty{}.into_request()).await?.into_inner();
let (tx, rx) = mpsc::channel(256); let (tx, rx) = mpsc::channel(256);