You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "ZYB-J (via GitHub)" <gi...@apache.org> on 2023/02/09 08:24:53 UTC

[GitHub] [dubbo-go] ZYB-J opened a new issue, #2206: proto文件中,小写开头方法名,triple调用失败

ZYB-J opened a new issue, #2206:
URL: https://github.com/apache/dubbo-go/issues/2206

   <!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!
   
   -->
   在生成的xxx_triple.pb.go中。如下代码方法名不一致:
   `
   func (c *helloWorldServiceClient) HelloWorld(ctx context.Context, in *JcnString, opts ...grpc.CallOption) (*JcnString, error) {
   	out := new(JcnString)
   	err := c.cc.Invoke(ctx, "/cn.j.chloe.joint.test.HelloWorldService/helloWorld", in, out, opts...)
   	if err != nil {
   		return nil, err
   	}
   	return out, nil
   }
   var HelloWorldService_ServiceDesc = grpc.ServiceDesc{
   	ServiceName: "cn.j.chloe.joint.test.HelloWorldService",
   	HandlerType: (*HelloWorldServiceServer)(nil),
   	Methods: []grpc.MethodDesc{
   		{
   			MethodName: "helloWorld",
   			Handler:    _HelloWorldService_HelloWorld_Handler,
   		},
   	},
   	Streams:  []grpc.StreamDesc{},
   	Metadata: "hello-world.proto",
   }
   `
   而且在grpc-go目录下server.go文件中1661行,把方法名首字母都转换成大写了。
   `			channelz.Warningf(logger, s.channelzID, "grpc: Server.handleStream failed to write status: %v", err)
   		}
   		if trInfo != nil {
   			trInfo.tr.Finish()
   		}
   		return
   	}
   	service := sm[:pos]
   	method := sm[pos+1:]
   	method = strings.ToUpper(string(method[0])) + method[1:]`
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org

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


[GitHub] [dubbo-go] AlexStocks commented on issue #2206: proto文件中,首字母小写方法名,triple调用失败

Posted by "AlexStocks (via GitHub)" <gi...@apache.org>.
AlexStocks commented on issue #2206:
URL: https://github.com/apache/dubbo-go/issues/2206#issuecomment-1434663260

   后续由沈逸飞同学在进行 grpc-go 版本升级的同时,修复该问题。


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

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


Re: [I] proto文件中,首字母小写方法名,triple调用失败 [dubbo-go]

Posted by "Alanxtl (via GitHub)" <gi...@apache.org>.
Alanxtl closed issue #2206: proto文件中,首字母小写方法名,triple调用失败
URL: https://github.com/apache/dubbo-go/issues/2206


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

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


Re: [I] proto文件中,首字母小写方法名,triple调用失败 [dubbo-go]

Posted by "Alanxtl (via GitHub)" <gi...@apache.org>.
Alanxtl commented on issue #2206:
URL: https://github.com/apache/dubbo-go/issues/2206#issuecomment-4135085623

   close via #3277


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

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