Skip to content

Commit 386b9cc

Browse files
authored
fix: panic caused memory allocation failure on Linux (#489)
1 parent 006b679 commit 386b9cc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src-tauri/src/local/application/with_feature.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,9 @@ impl Task for GetApplicationsTask {
357357
async fn exec(&mut self, state: &mut Option<Box<dyn SearchSourceState>>) {
358358
let callback = self.callback.take().unwrap();
359359

360-
// `size` is set to u32::MAX, it should be a reasonable value
360+
// `size` is set to 100_000, it should be a reasonable value
361361
let dsl = r#"{
362-
"size": 4294967295,
362+
"size": 100000,
363363
"query": {
364364
"match_all": { }
365365
}

0 commit comments

Comments
 (0)