lotus icon indicating copy to clipboard operation
lotus copied to clipboard

Set scripts loading limit

Open MindPatch opened this issue 3 years ago • 2 comments

There is a possibility to set a limit for loading and reading lua scripts, for example, by using the command --limit 5 (5 scripts per URL).

We can read five scripts for each url if we have 100 scripts; when the five scripts end, we can read five more scripts for that url.

MindPatch avatar Nov 16 '22 22:11 MindPatch

Hi! I want to try working on this issue.

Can I assume the script loading limit would be implemented on the start function in src/lib.rs?

My current understanding is to add a parameter in this function, limit:Option<usize>, which limits the number of scripts that can be loaded simultaneously.

JettChenT avatar Dec 02 '22 02:12 JettChenT

Thank you @JettChenT, yes, you should change the src/lib.rs file and add a new variable to the start function The next step would be to move the reading function from line 70 to line 89 (within the scope of the stream) as the next step.

best regards khaled

MindPatch avatar Dec 02 '22 16:12 MindPatch