Revert "Wait for previous UpdateFollowers message ack before sending new ones"

This reverts commit fe93263ad4.
This commit is contained in:
Antonio Scandurra 2022-11-17 16:57:32 +01:00
parent 8621c88a3c
commit e7e45be6e1
4 changed files with 57 additions and 106 deletions

View file

@ -192,7 +192,7 @@ impl Server {
.add_request_handler(Server::respond_to_contact_request)
.add_request_handler(Server::follow)
.add_message_handler(Server::unfollow)
.add_request_handler(Server::update_followers)
.add_message_handler(Server::update_followers)
.add_message_handler(Server::update_diff_base)
.add_request_handler(Server::get_private_user_info);
@ -1437,7 +1437,6 @@ impl Server {
async fn update_followers(
self: Arc<Self>,
request: Message<proto::UpdateFollowers>,
response: Response<proto::UpdateFollowers>,
) -> Result<()> {
let project_id = ProjectId::from_proto(request.payload.project_id);
let project_connection_ids = self
@ -1465,7 +1464,6 @@ impl Server {
)?;
}
}
response.send(proto::Ack {})?;
Ok(())
}