diff --git a/zed/src/rpc.rs b/zed/src/rpc.rs index 4b1ab0e66e..ee1ff2fbb6 100644 --- a/zed/src/rpc.rs +++ b/zed/src/rpc.rs @@ -5,6 +5,7 @@ use gpui::{AsyncAppContext, Entity, ModelContext, Task}; use lazy_static::lazy_static; use parking_lot::RwLock; use postage::prelude::Stream; +use postage::sink::Sink; use postage::watch; use std::any::TypeId; use std::collections::HashMap; @@ -225,7 +226,7 @@ impl Client { .detach(); let mut state = self.state.write(); state.connection_id = Some(connection_id); - state.user_id = watch::channel_with(Some(user_id)); + state.user_id.0.send(Some(user_id)).await?; Ok(()) }