Skip to content

Commit

Permalink
Fix chunkSize
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Feb 19, 2022
1 parent 10b1a6f commit ebbeaf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions denops/@ddu-sources/file_rec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class Source extends BaseSource<Params> {
sourceParams.ignoredDirectories,
abortController.signal,
);
let chunkSize = chunkMaxSize;
let chunkSize = chunkMinSize;
let chunk: Item<ActionData>[] = [];
try {
for await (const item of it) {
Expand All @@ -44,7 +44,7 @@ export class Source extends BaseSource<Params> {
controller.enqueue(chunk);
chunk = [];
if (chunkSize < chunkMaxSize) {
chunkSize += chunkSize * 5;
chunkSize += chunkSize;
}
}
}
Expand Down

0 comments on commit ebbeaf8

Please sign in to comment.