Skip to content

Simplify contructor for size limiter validator

Heinrich Lee Yu requested to merge simplify-size-limiter-constructor into master

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.

Edited by Heinrich Lee Yu

Merge request reports

Loading