You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "flycash (GitHub)" <gi...@apache.org> on 2019/11/10 13:50:08 UTC

[GitHub] [dubbo-go] flycash opened pull request #251: Fix: The registryProtocol should be singleton

<!--  Thanks for sending a pull request! 
-->

**What this PR does**:
It seems that the registryProtocol should be a singleton. The method GetProtocol doesn't set the value after it creates an instance of registryProtocol. So every time we invoke extension.GetProtocol("registry"), we will get different instances.

But the registryProtocol mantains all the instances of Registry, it should be a singleton.

**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

```

[ Full content available at: https://github.com/apache/dubbo-go/pull/251 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [dubbo-go] hxmhlt closed pull request #251: Fix: The registryProtocol should be singleton

Posted by "hxmhlt (GitHub)" <gi...@apache.org>.
[ pull request closed by hxmhlt ]

[ Full content available at: https://github.com/apache/dubbo-go/pull/251 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org