You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/06/12 10:50:52 UTC
[GitHub] [dubbo-go-pixiu] PhilYue opened a new pull request, #444: Refactor: nacos subscribe
PhilYue opened a new pull request, #444:
URL: https://github.com/apache/dubbo-go-pixiu/pull/444
<!-- Thanks for sending a pull request!
-->
**What this PR does**:
Refactor the nacos subscribe when the new service changed
**Which issue(s) this PR fixes**:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
_If PR is about `failing-tests or flakes`, please post the related issues/tests in a comment and do not use `Fixes`_*
-->
Fixes #
**Special notes for your reviewer**:
**Does this PR introduce a user-facing change?**:
<!--
If no, just write "NONE" in the release-note block below.
If yes, a release note is required:
Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required".
-->
```release-note
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo-go-pixiu] codecov-commenter commented on pull request #444: Refactor: nacos subscribe
Posted by GitBox <gi...@apache.org>.
codecov-commenter commented on PR #444:
URL: https://github.com/apache/dubbo-go-pixiu/pull/444#issuecomment-1153162594
# [Codecov](https://codecov.io/gh/apache/dubbo-go-pixiu/pull/444?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
> Merging [#444](https://codecov.io/gh/apache/dubbo-go-pixiu/pull/444?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (68779cf) into [develop](https://codecov.io/gh/apache/dubbo-go-pixiu/commit/0a54226fce5bf308218e0ebcd312174ffd892f46?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (0a54226) will **decrease** coverage by `0.04%`.
> The diff coverage is `0.00%`.
```diff
@@ Coverage Diff @@
## develop #444 +/- ##
===========================================
- Coverage 37.62% 37.57% -0.05%
===========================================
Files 55 55
Lines 3748 3752 +4
===========================================
Hits 1410 1410
- Misses 2180 2182 +2
- Partials 158 160 +2
```
| [Impacted Files](https://codecov.io/gh/apache/dubbo-go-pixiu/pull/444?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
|---|---|---|
| [pkg/server/cluster\_manager.go](https://codecov.io/gh/apache/dubbo-go-pixiu/pull/444/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cGtnL3NlcnZlci9jbHVzdGVyX21hbmFnZXIuZ28=) | `37.41% <0.00%> (-1.05%)` | :arrow_down: |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/dubbo-go-pixiu/pull/444?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/dubbo-go-pixiu/pull/444?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation). Last update [d26000a...68779cf](https://codecov.io/gh/apache/dubbo-go-pixiu/pull/444?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo-go-pixiu] AlexStocks commented on a diff in pull request #444: Refactor: nacos subscribe
Posted by GitBox <gi...@apache.org>.
AlexStocks commented on code in PR #444:
URL: https://github.com/apache/dubbo-go-pixiu/pull/444#discussion_r898113399
##########
pkg/remote/nacos/client.go:
##########
@@ -74,7 +75,24 @@ func NewNacosClient(config *model.RemoteConfig) (*NacosClient, error) {
}
configMap["serverConfigs"] = serverConfigs
- client, err := clients.CreateNamingClient(configMap)
+ //client, err := clients.CreateNamingClient(configMap)
+
+ duration, _ := time.ParseDuration(config.Timeout)
+ client, err := clients.NewNamingClient(
+ vo.NacosClientParam{
+ ClientConfig: constant.NewClientConfig(
+ //constant.WithNamespaceId(""),
+ constant.WithTimeoutMs(uint64(duration.Milliseconds())),
+ constant.WithNotLoadCacheAtStart(true),
+ constant.WithUpdateCacheWhenEmpty(true),
+ //constant.WithLogDir("./log"),
Review Comment:
这些代码不要就删掉吧
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo-go-pixiu] AlexStocks merged pull request #444: Refactor: nacos subscribe
Posted by GitBox <gi...@apache.org>.
AlexStocks merged PR #444:
URL: https://github.com/apache/dubbo-go-pixiu/pull/444
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org