cmd/protoc-gen-go-grpc: fix typo pancis -> panics (#7456)

This commit is contained in:
Connor Hindley 2024-07-31 10:15:08 -06:00 committed by GitHub
parent 1b1230bb69
commit 1013847d13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
18 changed files with 24 additions and 24 deletions

View File

@ -98,7 +98,7 @@ type UnsafeLoadBalancerServer interface {
}
func RegisterLoadBalancerServer(s grpc.ServiceRegistrar, srv LoadBalancerServer) {
// If the following call pancis, it indicates UnimplementedLoadBalancerServer was
// If the following call panics, it indicates UnimplementedLoadBalancerServer 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.

View File

@ -213,7 +213,7 @@ type UnsafeChannelzServer interface {
}
func RegisterChannelzServer(s grpc.ServiceRegistrar, srv ChannelzServer) {
// If the following call pancis, it indicates UnimplementedChannelzServer was
// If the following call panics, it indicates UnimplementedChannelzServer 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.

View File

@ -310,7 +310,7 @@ func genService(gen *protogen.Plugin, file *protogen.File, g *protogen.Generated
}
serviceDescVar := service.GoName + "_ServiceDesc"
g.P("func Register", service.GoName, "Server(s ", grpcPackage.Ident("ServiceRegistrar"), ", srv ", serverType, ") {")
g.P("// If the following call pancis, it indicates Unimplemented", serverType, " was")
g.P("// If the following call panics, it indicates Unimplemented", serverType, " was")
g.P("// embedded by pointer and is nil. This will cause panics if an")
g.P("// unimplemented method is ever invoked, so we test this at initialization")
g.P("// time to prevent it from happening at runtime later due to I/O.")

View File

@ -108,7 +108,7 @@ type UnsafeHandshakerServiceServer interface {
}
func RegisterHandshakerServiceServer(s grpc.ServiceRegistrar, srv HandshakerServiceServer) {
// If the following call pancis, it indicates UnimplementedHandshakerServiceServer was
// If the following call panics, it indicates UnimplementedHandshakerServiceServer 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.

View File

@ -168,7 +168,7 @@ type UnsafeEchoServer interface {
}
func RegisterEchoServer(s grpc.ServiceRegistrar, srv EchoServer) {
// If the following call pancis, it indicates UnimplementedEchoServer was
// If the following call panics, it indicates UnimplementedEchoServer 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.

View File

@ -96,7 +96,7 @@ type UnsafeGreeterServer interface {
}
func RegisterGreeterServer(s grpc.ServiceRegistrar, srv GreeterServer) {
// If the following call pancis, it indicates UnimplementedGreeterServer was
// If the following call panics, it indicates UnimplementedGreeterServer 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.

View File

@ -197,7 +197,7 @@ type UnsafeRouteGuideServer interface {
}
func RegisterRouteGuideServer(s grpc.ServiceRegistrar, srv RouteGuideServer) {
// If the following call pancis, it indicates UnimplementedRouteGuideServer was
// If the following call panics, it indicates UnimplementedRouteGuideServer 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.

View File

@ -172,7 +172,7 @@ type UnsafeHealthServer interface {
}
func RegisterHealthServer(s grpc.ServiceRegistrar, srv HealthServer) {
// If the following call pancis, it indicates UnimplementedHealthServer was
// If the following call panics, it indicates UnimplementedHealthServer 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.

View File

@ -92,7 +92,7 @@ type UnsafeRouteLookupServiceServer interface {
}
func RegisterRouteLookupServiceServer(s grpc.ServiceRegistrar, srv RouteLookupServiceServer) {
// If the following call pancis, it indicates UnimplementedRouteLookupServiceServer was
// If the following call panics, it indicates UnimplementedRouteLookupServiceServer 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.

View File

@ -197,7 +197,7 @@ type UnsafeBenchmarkServiceServer interface {
}
func RegisterBenchmarkServiceServer(s grpc.ServiceRegistrar, srv BenchmarkServiceServer) {
// If the following call pancis, it indicates UnimplementedBenchmarkServiceServer was
// If the following call panics, it indicates UnimplementedBenchmarkServiceServer 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.

View File

@ -96,7 +96,7 @@ type UnsafeReportQpsScenarioServiceServer interface {
}
func RegisterReportQpsScenarioServiceServer(s grpc.ServiceRegistrar, srv ReportQpsScenarioServiceServer) {
// If the following call pancis, it indicates UnimplementedReportQpsScenarioServiceServer was
// If the following call panics, it indicates UnimplementedReportQpsScenarioServiceServer 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.

View File

@ -265,7 +265,7 @@ type UnsafeTestServiceServer interface {
}
func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer) {
// If the following call pancis, it indicates UnimplementedTestServiceServer was
// If the following call panics, it indicates UnimplementedTestServiceServer 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.
@ -496,7 +496,7 @@ type UnsafeUnimplementedServiceServer interface {
}
func RegisterUnimplementedServiceServer(s grpc.ServiceRegistrar, srv UnimplementedServiceServer) {
// If the following call pancis, it indicates UnimplementedUnimplementedServiceServer was
// If the following call panics, it indicates UnimplementedUnimplementedServiceServer 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.
@ -618,7 +618,7 @@ type UnsafeReconnectServiceServer interface {
}
func RegisterReconnectServiceServer(s grpc.ServiceRegistrar, srv ReconnectServiceServer) {
// If the following call pancis, it indicates UnimplementedReconnectServiceServer was
// If the following call panics, it indicates UnimplementedReconnectServiceServer 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.
@ -767,7 +767,7 @@ type UnsafeLoadBalancerStatsServiceServer interface {
}
func RegisterLoadBalancerStatsServiceServer(s grpc.ServiceRegistrar, srv LoadBalancerStatsServiceServer) {
// If the following call pancis, it indicates UnimplementedLoadBalancerStatsServiceServer was
// If the following call panics, it indicates UnimplementedLoadBalancerStatsServiceServer 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.
@ -935,7 +935,7 @@ type UnsafeHookServiceServer interface {
}
func RegisterHookServiceServer(s grpc.ServiceRegistrar, srv HookServiceServer) {
// If the following call pancis, it indicates UnimplementedHookServiceServer was
// If the following call panics, it indicates UnimplementedHookServiceServer 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.
@ -1118,7 +1118,7 @@ type UnsafeXdsUpdateHealthServiceServer interface {
}
func RegisterXdsUpdateHealthServiceServer(s grpc.ServiceRegistrar, srv XdsUpdateHealthServiceServer) {
// If the following call pancis, it indicates UnimplementedXdsUpdateHealthServiceServer was
// If the following call panics, it indicates UnimplementedXdsUpdateHealthServiceServer 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.
@ -1271,7 +1271,7 @@ type UnsafeXdsUpdateClientConfigureServiceServer interface {
}
func RegisterXdsUpdateClientConfigureServiceServer(s grpc.ServiceRegistrar, srv XdsUpdateClientConfigureServiceServer) {
// If the following call pancis, it indicates UnimplementedXdsUpdateClientConfigureServiceServer was
// If the following call panics, it indicates UnimplementedXdsUpdateClientConfigureServiceServer 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.

View File

@ -175,7 +175,7 @@ type UnsafeWorkerServiceServer interface {
}
func RegisterWorkerServiceServer(s grpc.ServiceRegistrar, srv WorkerServiceServer) {
// If the following call pancis, it indicates UnimplementedWorkerServiceServer was
// If the following call panics, it indicates UnimplementedWorkerServiceServer 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.

View File

@ -128,7 +128,7 @@ type UnsafeMetricsServiceServer interface {
}
func RegisterMetricsServiceServer(s grpc.ServiceRegistrar, srv MetricsServiceServer) {
// If the following call pancis, it indicates UnimplementedMetricsServiceServer was
// If the following call panics, it indicates UnimplementedMetricsServiceServer 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.

View File

@ -116,7 +116,7 @@ type UnsafeProfilingServer interface {
}
func RegisterProfilingServer(s grpc.ServiceRegistrar, srv ProfilingServer) {
// If the following call pancis, it indicates UnimplementedProfilingServer was
// If the following call panics, it indicates UnimplementedProfilingServer 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.

View File

@ -102,7 +102,7 @@ type UnsafeServerReflectionServer interface {
}
func RegisterServerReflectionServer(s grpc.ServiceRegistrar, srv ServerReflectionServer) {
// If the following call pancis, it indicates UnimplementedServerReflectionServer was
// If the following call panics, it indicates UnimplementedServerReflectionServer 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.

View File

@ -99,7 +99,7 @@ type UnsafeServerReflectionServer interface {
}
func RegisterServerReflectionServer(s grpc.ServiceRegistrar, srv ServerReflectionServer) {
// If the following call pancis, it indicates UnimplementedServerReflectionServer was
// If the following call panics, it indicates UnimplementedServerReflectionServer 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.

View File

@ -109,7 +109,7 @@ type UnsafeSearchServiceServer interface {
}
func RegisterSearchServiceServer(s grpc.ServiceRegistrar, srv SearchServiceServer) {
// If the following call pancis, it indicates UnimplementedSearchServiceServer was
// If the following call panics, it indicates UnimplementedSearchServiceServer 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.