Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
refactor(server/v2): eager config loading #22267
refactor(server/v2): eager config loading #22267
Changes from all commits
b2072de
ecf73cf
8cb7307
3803716
30d1789
23780e2
da16c69
ddfac2b
9c38263
cf96c1f
d3012f1
9ca9e6b
43c10ad
4c93ad7
3e0ded0
72b278a
a3c111f
b689605
10e2d4b
b894a32
be3a0b3
fc68979
348028f
40bfd6b
68f543f
bb95533
e4047cc
0f79666
df178ab
9055ee2
d39386d
dcc3ddc
17eadc8
ca06258
20e7ec1
94d30f5
ff0fa66
9e60b5e
3a83516
b21b825
ce56ae9
4380b02
d3bb0c3
c48172d
9addef4
e9c4005
6d18467
d200520
13d9771
1cadeeb
6472136
9c38df2
7014d0d
6272619
e7603cf
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
🛠️ Refactor suggestion
Avoid type assertion by changing
Config()
method's return typeChange the
Config()
method to return*Config
instead ofany
to eliminate the need for type assertion and improve type safety.Apply this diff:
And update the usage in the
New
function: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.
Shouldn't this be moved up?
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.
the config reading and the logger key should be in New
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.
cc @kocubinski