This is an automated email from the ASF dual-hosted git repository.
alexstocks pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git
The following commit(s) were added to refs/heads/develop by this push:
new 7923bb210 remove unused fuction (#2846)
7923bb210 is described below
commit 7923bb210273ef9fa3ca7529e0c8ff29a7811413
Author: marsevilspirit <[email protected]>
AuthorDate: Tue Apr 22 13:07:33 2025 +0800
remove unused fuction (#2846)
---
protocol/triple/triple.go | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/protocol/triple/triple.go b/protocol/triple/triple.go
index bfb757da8..cf1bba63b 100644
--- a/protocol/triple/triple.go
+++ b/protocol/triple/triple.go
@@ -70,20 +70,6 @@ func (tp *TripleProtocol) Export(invoker protocol.Invoker)
protocol.Exporter {
return exporter
}
-// *Important*. This function is only for testing. When server package is
finished, remove this function
-// and modify related tests.
-func (tp *TripleProtocol) exportForTest(invoker protocol.Invoker, info
*common.ServiceInfo) protocol.Exporter {
- url := invoker.GetURL()
- serviceKey := url.ServiceKey()
- // todo: retrieve this info from url
- exporter := NewTripleExporter(serviceKey, invoker, tp.ExporterMap())
- tp.SetExporterMap(serviceKey, exporter)
- logger.Infof("[TRIPLE Protocol] Export service: %s", url.String())
- tp.openServer(invoker, info)
- internal.HealthSetServingStatusServing(url.Service())
- return exporter
-}
-
func (tp *TripleProtocol) openServer(invoker protocol.Invoker, info
*common.ServiceInfo) {
url := invoker.GetURL()
tp.serverLock.Lock()