Commit 3b565572 authored by suyanlong's avatar suyanlong

Fixed route bug

parent e7971c4e
Pipeline #8341 canceled with stages
...@@ -189,7 +189,6 @@ func (r *router) Route(msg *pb.Message) error { ...@@ -189,7 +189,6 @@ func (r *router) Route(msg *pb.Message) error {
return err return err
} }
case pb.Message_IBTP_GET: case pb.Message_IBTP_GET:
case pb.Message_IBTP_RECEIPT_GET: case pb.Message_IBTP_RECEIPT_GET:
default: default:
return nil return nil
...@@ -198,7 +197,7 @@ func (r *router) Route(msg *pb.Message) error { ...@@ -198,7 +197,7 @@ func (r *router) Route(msg *pb.Message) error {
default: default:
return nil return nil
} }
} } else {
// 规则判断 转发给其它的sidecar节点 // 规则判断 转发给其它的sidecar节点
method := strings.ToLower(ibtpx.RouteMethod) method := strings.ToLower(ibtpx.RouteMethod)
if md, is := r.methodMap[method]; is { if md, is := r.methodMap[method]; is {
...@@ -212,6 +211,7 @@ func (r *router) Route(msg *pb.Message) error { ...@@ -212,6 +211,7 @@ func (r *router) Route(msg *pb.Message) error {
} else { } else {
r.firstRoute(msg) r.firstRoute(msg)
} }
}
return nil return nil
} }
......
Markdown is supported
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