Restructure Peer to handle connections' messages in order

This commit is contained in:
Max Brunsfeld 2021-07-09 16:27:33 -07:00
parent b7fae693f9
commit eeebc761b6
14 changed files with 479 additions and 274 deletions

View file

@ -1,3 +1,5 @@
use zed_rpc::ForegroundRouter;
pub mod assets;
pub mod editor;
pub mod file_finder;
@ -14,10 +16,10 @@ mod util;
pub mod workspace;
pub mod worktree;
#[derive(Clone)]
pub struct AppState {
pub settings: postage::watch::Receiver<settings::Settings>,
pub languages: std::sync::Arc<language::LanguageRegistry>,
pub rpc_router: std::sync::Arc<ForegroundRouter>,
pub rpc: rpc::Client,
}