Skip to content

Commit aaa4861

Browse files
committed
More uniform naming
1 parent 2d2585e commit aaa4861

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

crates/ra_lsp_server/src/main_loop.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ fn on_request(
452452
world: &mut WorldState,
453453
pending_requests: &mut PendingRequests,
454454
pool: &ThreadPool,
455-
sender: &Sender<Task>,
455+
task_sender: &Sender<Task>,
456456
msg_sender: &Sender<Message>,
457457
request_received: Instant,
458458
req: Request,
@@ -461,7 +461,7 @@ fn on_request(
461461
req: Some(req),
462462
pool,
463463
world,
464-
sender,
464+
task_sender,
465465
msg_sender,
466466
pending_requests,
467467
request_received,
@@ -661,7 +661,7 @@ struct PoolDispatcher<'a> {
661661
world: &'a mut WorldState,
662662
pending_requests: &'a mut PendingRequests,
663663
msg_sender: &'a Sender<Message>,
664-
sender: &'a Sender<Task>,
664+
task_sender: &'a Sender<Task>,
665665
request_received: Instant,
666666
}
667667

@@ -708,7 +708,7 @@ impl<'a> PoolDispatcher<'a> {
708708

709709
self.pool.execute({
710710
let world = self.world.snapshot();
711-
let sender = self.sender.clone();
711+
let sender = self.task_sender.clone();
712712
move || {
713713
let result = f(world, params);
714714
let task = result_to_task::<R>(id, result);
@@ -786,7 +786,7 @@ fn update_file_notifications_on_threadpool(
786786
pool: &ThreadPool,
787787
world: WorldSnapshot,
788788
publish_decorations: bool,
789-
sender: Sender<Task>,
789+
task_sender: Sender<Task>,
790790
subscriptions: Vec<FileId>,
791791
) {
792792
log::trace!("updating notifications for {:?}", subscriptions);
@@ -802,7 +802,7 @@ fn update_file_notifications_on_threadpool(
802802
}
803803
Ok(params) => {
804804
let not = notification_new::<req::PublishDiagnostics>(params);
805-
sender.send(Task::Notify(not)).unwrap();
805+
task_sender.send(Task::Notify(not)).unwrap();
806806
}
807807
}
808808
}
@@ -815,7 +815,7 @@ fn update_file_notifications_on_threadpool(
815815
}
816816
Ok(params) => {
817817
let not = notification_new::<req::PublishDecorations>(params);
818-
sender.send(Task::Notify(not)).unwrap();
818+
task_sender.send(Task::Notify(not)).unwrap();
819819
}
820820
}
821821
}

0 commit comments

Comments
 (0)