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

feat: add support for instance name #1491

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

MichaelSun90
Copy link
Contributor

Add the support for instance name, and store instance under rerouting data.
Co-authored-by: mShan0 [email protected]
Co-authored-by: Arthur Schreiber [email protected]

@codecov
Copy link

codecov bot commented Nov 9, 2022

Codecov Report

Merging #1491 (423c0a6) into master (e43e9c9) will increase coverage by 0.04%.
The diff coverage is 81.25%.

@@            Coverage Diff             @@
##           master    #1491      +/-   ##
==========================================
+ Coverage   80.66%   80.71%   +0.04%     
==========================================
  Files          91       91              
  Lines        4655     4661       +6     
  Branches      854      858       +4     
==========================================
+ Hits         3755     3762       +7     
  Misses        626      626              
+ Partials      274      273       -1     
Impacted Files Coverage Δ
src/instance-lookup.ts 90.74% <ø> (ø)
src/sender.ts 84.09% <ø> (ø)
src/prelogin-payload.ts 91.08% <66.66%> (-1.70%) ⬇️
src/connection.ts 66.33% <100.00%> (+0.36%) ⬆️
src/token/handler.ts 55.62% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

if (this.config.options.port) {
return this.connectOnPort(this.config.options.port, this.config.options.multiSubnetFailover, signal);
} else {
// The instance lookup communicates with the server and gets all the
// available instance name and their corresponding ports.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// available instance name and their corresponding ports.
// available instance names and their corresponding ports.

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.

3 participants