Skip to content
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 #325] Removes the server address from reconnection logs in examples. #346

Merged
merged 1 commit into from
Sep 2, 2022

Conversation

4383
Copy link
Contributor

@4383 4383 commented Sep 2, 2022

A couple of examples tries to log the server address during reconnection, through an inner reconnection callback passed as parameter to the client object.

However, this kind of callback need to be defined before we instantiate the client, so the inner callback isn't able to see and access the client/connection object.

The issue was originaly described into the issue #325, however a couple of other examples also implement the same logic that surely fails in the same way (not tested on my side). I only focused my tests on the example given in the original issue.

…n examples.

A couple of examples tries to log the server address during
reconnection, through an inner reconnection callback passed as
parameter to the client object.

However, this kind of callback need to be defined before we instantiate
the client, so the inner callback isn't able to see and access the
client/connection object.

The issue was originaly described into the issue nats-io#325, however a couple
of other examples also implement the same logic that surely fails in the
same way (not tested on my side). I only focused my tests on the
example given in the original issue.
@wallyqs wallyqs merged commit cf63f7a into nats-io:main Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants