<!-- 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
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]