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

Develop endpoint #673

Merged
merged 2 commits into from
Nov 1, 2023
Merged

Conversation

shiyiyue1102
Copy link
Contributor

support user define full address url.

1.add endpointContextPath, clusterName,endpointQueryParams to replace fix "/nacos/serverlist"

  1. fix rpc client reconnect to server twice on startup.

  2. optimize http get method params concat logic.

go func() {
for {
select {
case <-ctx.Done():
return
default:
time.Sleep(time.Duration(1) * time.Second)
server.refreshServerSrvIfNeed()
time.Sleep(time.Duration(10) * time.Second)
Copy link
Contributor

Choose a reason for hiding this comment

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

这里建议用个case timer做这个事情
default不要了

@codecov-commenter
Copy link

codecov-commenter commented Oct 30, 2023

Codecov Report

Attention: 29 lines in your changes are missing coverage. Please review.

Comparison is base (f657a26) 30.03% compared to head (c7fb382) 29.90%.

❗ Current head c7fb382 differs from pull request most recent head 241ac3e. Consider uploading reports for the commit 241ac3e to get more accurate results

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #673      +/-   ##
==========================================
- Coverage   30.03%   29.90%   -0.13%     
==========================================
  Files          40       40              
  Lines        3070     3093      +23     
==========================================
+ Hits          922      925       +3     
- Misses       2081     2100      +19     
- Partials       67       68       +1     
Files Coverage Δ
clients/client_factory.go 50.79% <0.00%> (-1.67%) ⬇️
common/constant/client_config_options.go 72.09% <0.00%> (-8.43%) ⬇️
common/nacos_server/nacos_server.go 15.88% <14.28%> (-1.10%) ⬇️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@binbin0325 binbin0325 merged commit 4eb0559 into nacos-group:master Nov 1, 2023
2 checks passed
yesAnd92 pushed a commit to yesAnd92/nacos-sdk-go that referenced this pull request Nov 3, 2023
* support endpoint params

* support endpoint context path
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.

4 participants