Replace callback-based requests/messages with streams
This commit is contained in:
parent
8b66e0aa7e
commit
8112efd522
8 changed files with 306 additions and 137 deletions
|
@ -1,4 +1,6 @@
|
|||
use crate::{language::LanguageRegistry, settings, time::ReplicaId, AppState};
|
||||
use crate::{
|
||||
language::LanguageRegistry, rpc_client::RpcClient, settings, time::ReplicaId, AppState,
|
||||
};
|
||||
use ctor::ctor;
|
||||
use gpui::AppContext;
|
||||
use rand::Rng;
|
||||
|
@ -150,5 +152,6 @@ pub fn build_app_state(cx: &AppContext) -> AppState {
|
|||
AppState {
|
||||
settings,
|
||||
language_registry,
|
||||
rpc_client: RpcClient::new(),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue