Skip to content

Commit ef75690

Browse files
committed
typo
1 parent eaad333 commit ef75690

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

quickwit/quickwit-search/src/search_permit_provider.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ pub fn compute_initial_memory_allocation(
8080
impl SearchPermitProvider {
8181
pub fn new(
8282
num_download_slots: usize,
83-
num_concurrent_query: usize,
83+
num_concurrent_queries: usize,
8484
memory_budget: ByteSize,
8585
) -> Self {
8686
let (message_sender, message_receiver) = mpsc::unbounded_channel();
@@ -90,7 +90,7 @@ impl SearchPermitProvider {
9090
msg_receiver: message_receiver,
9191
msg_sender: message_sender.downgrade(),
9292
num_warmup_slots_available: num_download_slots,
93-
num_concurrent_query,
93+
num_concurrent_queries,
9494
next_query_to_serve: 0,
9595
total_memory_budget: memory_budget.as_u64(),
9696
permits_requests: VecDeque::new(),
@@ -135,7 +135,7 @@ struct SearchPermitActor {
135135
msg_receiver: mpsc::UnboundedReceiver<SearchPermitMessage>,
136136
msg_sender: mpsc::WeakUnboundedSender<SearchPermitMessage>,
137137
num_warmup_slots_available: usize,
138-
num_concurrent_query: usize,
138+
num_concurrent_queries: usize,
139139
next_query_to_serve: usize,
140140
/// Note it is possible for memory_allocated to exceed memory_budget temporarily,
141141
/// if and only if a split leaf search task ended up using more than `initial_allocation`.
@@ -258,7 +258,7 @@ impl SearchPermitActor {
258258
if leaf.is_empty() {
259259
self.permits_requests.remove(leaf_position);
260260
} else {
261-
self.next_query_to_serve = (leaf_position + 1) % self.num_concurrent_query;
261+
self.next_query_to_serve = (leaf_position + 1) % self.num_concurrent_queries;
262262
}
263263
return Some(permit_request);
264264
}

0 commit comments

Comments
 (0)