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 2020/05/08 11:44:47 UTC

[GitHub] [dubbo-go] cvictory commented on a change in pull request #495: 重构网络模块

cvictory commented on a change in pull request #495:
URL: https://github.com/apache/dubbo-go/pull/495#discussion_r422097697



##########
File path: remoting/exchange_server.go
##########
@@ -0,0 +1,30 @@
+package remoting
+
+import (
+	"github.com/apache/dubbo-go/common"
+)
+
+type Server interface {
+	//invoke once for connection
+	Start()
+	Stop()
+}
+
+type ExchangeServer struct {
+	Server Server
+}
+
+func NewExchangeServer(url common.URL, server Server) *ExchangeServer {
+	exchangServer := &ExchangeServer{
+		Server: server,
+	}
+	return exchangServer
+}
+
+func (server *ExchangeServer) Start() {
+	(server.Server).Start()

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.

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