Simplify contructor for size limiter validator
What does this MR do and why?
The validations are done because we used to read from ENV which can be misconfigured by users. Now that we read from ApplicationSetting
, these are already validated.
The constructor options are also only used for ease of testing the invalid options so we remove them here.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Heinrich Lee Yu