You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2025/04/22 05:07:37 UTC

(dubbo-go) branch develop updated: remove unused fuction (#2846)

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 <ma...@gmail.com>
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()