Skip to content
Snippets Groups Projects
Commit 639aab65 authored by fangyincheng's avatar fangyincheng
Browse files

Fix: format

parent 114174db
No related branches found
No related tags found
No related merge requests found
......@@ -141,10 +141,10 @@ func (p *RpcServerPackageHandler) Read(ss getty.Session, data []byte) (interface
attachments = req[6].(map[string]string)
}
pkg.Service.Interface = attachments[constant.INTERFACE_KEY]
if pkg.Service.Path == "" && attachments[constant.PATH_KEY] != "" {
if len(pkg.Service.Path) == 0 && len(attachments[constant.PATH_KEY]) != 0 {
pkg.Service.Path = attachments[constant.PATH_KEY]
}
if attachments[constant.GROUP_KEY] != "" {
if len(attachments[constant.GROUP_KEY]) != 0 {
pkg.Service.Group = attachments[constant.GROUP_KEY]
}
pkg.Body = map[string]interface{}{
......
......@@ -18,7 +18,6 @@
package protocol
import (
"github.com/apache/dubbo-go/common/proxy/proxy_factory"
"sync"
)
......@@ -27,6 +26,7 @@ import (
"github.com/apache/dubbo-go/common/constant"
"github.com/apache/dubbo-go/common/extension"
"github.com/apache/dubbo-go/common/logger"
"github.com/apache/dubbo-go/common/proxy/proxy_factory"
"github.com/apache/dubbo-go/protocol"
"github.com/apache/dubbo-go/protocol/protocolwrapper"
"github.com/apache/dubbo-go/registry"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment