-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
fix: multi protocol gateway supports monitoring #5570
Conversation
@@ -21,10 +22,11 @@ def __init__( | |||
self.gateways: List[BaseGateway] = [] | |||
for port, protocol in zip(self.ports, self.protocols): | |||
gateway_cls = _get_gateway_class(protocol) | |||
runtime_args = copy.deepcopy(self.runtime_args) | |||
# ignore metrics_registry since it is not copyable | |||
runtime_args = deepcopy_with_ignore_attrs(self.runtime_args, ['metrics_registry']) |
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.
are we sure deepcopy
is needed?
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.
I think we need to copy the runtime_args object, otherwise, how can different gateway objects hold the same reference of runtime_args
but have different values of port and protocol ?
Codecov Report
@@ Coverage Diff @@
## master #5570 +/- ##
==========================================
- Coverage 87.47% 86.25% -1.23%
==========================================
Files 123 123
Lines 9839 9846 +7
==========================================
- Hits 8607 8493 -114
- Misses 1232 1353 +121
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
8e169ee
to
a28f96a
Compare
Goals: