-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: server properties configurable #365
Conversation
…perties. Adding 2 new properties to the newly created ServerConfig, and mapping them for ENV override using the ServerMappedConfigSourceInitializer. maxMessageSizeBytes and port. Replacing the hardcoded values on the codebase with the new configurable properties from ServerConfig. Added the new configuration to the ConfigInjectionModule Created UT for testing the Config validations and restrictions. Added Test case for ConfigInjectionModule to retrieve the newly config object. Signed-off-by: Alfredo Gutierrez <[email protected]>
…g object. Signed-off-by: Alfredo Gutierrez <[email protected]>
ca87106
to
01128d4
Compare
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.
@AlfredoG87 looks good! A couple of nits.
server/src/main/java/com/hedera/block/server/config/ServerMappedConfigSourceInitializer.java
Show resolved
Hide resolved
Signed-off-by: Alfredo Gutierrez <[email protected]>
Signed-off-by: Alfredo Gutierrez <[email protected]>
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.
@AlfredoG87 looks great!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #365 +/- ##
============================================
+ Coverage 97.74% 97.77% +0.03%
- Complexity 334 343 +9
============================================
Files 69 70 +1
Lines 1239 1256 +17
Branches 86 88 +2
============================================
+ Hits 1211 1228 +17
Misses 19 19
Partials 9 9
|
Description:
Related issue(s):
Fixes #344
Fixes #345
Notes for reviewer:
Checklist