Finish implementing Db::update_project

This commit is contained in:
Antonio Scandurra
2022-11-15 09:01:51 +01:00
parent 42bb5f0e9f
commit 3e8fcb04f7
6 changed files with 22 additions and 68 deletions
+3 -3
View File
@@ -373,7 +373,7 @@ impl Project {
client.add_model_message_handler(Self::handle_start_language_server);
client.add_model_message_handler(Self::handle_update_language_server);
client.add_model_message_handler(Self::handle_remove_collaborator);
client.add_model_message_handler(Self::handle_project_updated);
client.add_model_message_handler(Self::handle_update_project);
client.add_model_message_handler(Self::handle_unshare_project);
client.add_model_message_handler(Self::handle_create_buffer_for_peer);
client.add_model_message_handler(Self::handle_update_buffer_file);
@@ -4533,9 +4533,9 @@ impl Project {
})
}
async fn handle_project_updated(
async fn handle_update_project(
this: ModelHandle<Self>,
envelope: TypedEnvelope<proto::ProjectUpdated>,
envelope: TypedEnvelope<proto::UpdateProject>,
client: Arc<Client>,
mut cx: AsyncAppContext,
) -> Result<()> {