diff --git a/contrib/opensergo/opensergo.go b/contrib/opensergo/opensergo.go index f22e16e0a..16a48d7d6 100644 --- a/contrib/opensergo/opensergo.go +++ b/contrib/opensergo/opensergo.go @@ -131,7 +131,7 @@ func listDescriptors() (services []*v1.ServiceDescriptor, types []*v1.TypeDescri pattern := proto.GetExtension(md.Options(), annotations.E_Http).(*annotations.HttpRule).GetPattern() var httpPath, httpMethod string if pattern != nil { - httpPath, httpMethod = HTTPPatternInfo(pattern) + httpMethod, httpPath = HTTPPatternInfo(pattern) } methodDesc := v1.MethodDescriptor{ Name: mName,