Remove never-used client parameter from message handler functions (#13406)

Every single client-side RPC message handler function took an unused
`Arc<Client>` parameter. This removes that.

Release Notes:

- N/A
This commit is contained in:
Max Brunsfeld 2024-06-22 16:07:36 -07:00 committed by GitHub
parent 988ee93a81
commit 6fba1e46a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 29 additions and 87 deletions

View file

@ -209,7 +209,6 @@ impl NotificationStore {
async fn handle_new_notification(
this: Model<Self>,
envelope: TypedEnvelope<proto::AddNotification>,
_: Arc<Client>,
cx: AsyncAppContext,
) -> Result<()> {
Self::add_notifications(
@ -228,7 +227,6 @@ impl NotificationStore {
async fn handle_delete_notification(
this: Model<Self>,
envelope: TypedEnvelope<proto::DeleteNotification>,
_: Arc<Client>,
mut cx: AsyncAppContext,
) -> Result<()> {
this.update(&mut cx, |this, cx| {
@ -240,7 +238,6 @@ impl NotificationStore {
async fn handle_update_notification(
this: Model<Self>,
envelope: TypedEnvelope<proto::UpdateNotification>,
_: Arc<Client>,
mut cx: AsyncAppContext,
) -> Result<()> {
this.update(&mut cx, |this, cx| {