mirror of
https://github.com/hexedtech/codemp.git
synced 2024-12-23 05:14:54 +01:00
fix: don't borrow self as mut to join workspace
This commit is contained in:
parent
bc2469d7e1
commit
4694a01c9b
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ impl Client {
|
|||
}
|
||||
|
||||
/// 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 (tx, rx) = mpsc::channel(256);
|
||||
|
|
Loading…
Reference in a new issue