v1.5.1 增强程序稳定性
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.5.1
|
||||
// - protoc v6.33.2
|
||||
// - protoc-gen-go-grpc v1.6.1
|
||||
// - protoc v3.19.6
|
||||
// source: service_ping.proto
|
||||
|
||||
package pb
|
||||
@@ -70,7 +70,7 @@ type PingServiceServer interface {
|
||||
type UnimplementedPingServiceServer struct{}
|
||||
|
||||
func (UnimplementedPingServiceServer) Ping(context.Context, *PingRequest) (*PingResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Ping not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method Ping not implemented")
|
||||
}
|
||||
func (UnimplementedPingServiceServer) testEmbeddedByValue() {}
|
||||
|
||||
@@ -82,7 +82,7 @@ type UnsafePingServiceServer interface {
|
||||
}
|
||||
|
||||
func RegisterPingServiceServer(s grpc.ServiceRegistrar, srv PingServiceServer) {
|
||||
// If the following call pancis, it indicates UnimplementedPingServiceServer was
|
||||
// If the following call panics, it indicates UnimplementedPingServiceServer was
|
||||
// embedded by pointer and is nil. This will cause panics if an
|
||||
// unimplemented method is ever invoked, so we test this at initialization
|
||||
// time to prevent it from happening at runtime later due to I/O.
|
||||
|
||||
Reference in New Issue
Block a user