-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Access] Make REST message size limit configurable #6596
base: master
Are you sure you want to change the base?
[Access] Make REST message size limit configurable #6596
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6596 +/- ##
=======================================
Coverage 41.19% 41.20%
=======================================
Files 2052 2052
Lines 182191 182209 +18
=======================================
+ Hits 75062 75080 +18
Misses 100839 100839
Partials 6290 6290
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
@@ -1508,6 +1513,10 @@ func (builder *FlowAccessNodeBuilder) extraFlags() { | |||
return errors.New("execution-data-indexing-enabled must be set if check-payer-balance is enabled") | |||
} | |||
|
|||
if builder.rpcConf.RestConfig.MaxRequestSize <= 0 { | |||
return errors.New("rest-max-request-size must be greater than or equal to 0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return errors.New("rest-max-request-size must be greater than or equal to 0") | |
return errors.New("rest-max-request-size must be greater than 0") |
@@ -851,6 +856,10 @@ func (builder *ObserverServiceBuilder) extraFlags() { | |||
} | |||
} | |||
|
|||
if builder.rpcConf.RestConfig.MaxRequestSize <= 0 { | |||
return errors.New("rest-max-request-size must be greater than or equal to 0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return errors.New("rest-max-request-size must be greater than or equal to 0") | |
return errors.New("rest-max-request-size must be greater than 0") |
Closes: #6566