From 1013847d133eccaa317d65ddf99c143930ee4a47 Mon Sep 17 00:00:00 2001 From: Connor Hindley Date: Wed, 31 Jul 2024 10:15:08 -0600 Subject: [PATCH] cmd/protoc-gen-go-grpc: fix typo pancis -> panics (#7456) --- .../grpclb/grpc_lb_v1/load_balancer_grpc.pb.go | 2 +- channelz/grpc_channelz_v1/channelz_grpc.pb.go | 2 +- cmd/protoc-gen-go-grpc/grpc.go | 2 +- .../internal/proto/grpc_gcp/handshaker_grpc.pb.go | 2 +- examples/features/proto/echo/echo_grpc.pb.go | 2 +- .../helloworld/helloworld/helloworld_grpc.pb.go | 2 +- .../route_guide/routeguide/route_guide_grpc.pb.go | 2 +- health/grpc_health_v1/health_grpc.pb.go | 2 +- internal/proto/grpc_lookup_v1/rls_grpc.pb.go | 2 +- interop/grpc_testing/benchmark_service_grpc.pb.go | 2 +- .../report_qps_scenario_service_grpc.pb.go | 2 +- interop/grpc_testing/test_grpc.pb.go | 14 +++++++------- interop/grpc_testing/worker_service_grpc.pb.go | 2 +- interop/stress/grpc_testing/metrics_grpc.pb.go | 2 +- profiling/proto/service_grpc.pb.go | 2 +- .../grpc_reflection_v1/reflection_grpc.pb.go | 2 +- .../grpc_reflection_v1alpha/reflection_grpc.pb.go | 2 +- reflection/grpc_testing/test_grpc.pb.go | 2 +- 18 files changed, 24 insertions(+), 24 deletions(-) diff --git a/balancer/grpclb/grpc_lb_v1/load_balancer_grpc.pb.go b/balancer/grpclb/grpc_lb_v1/load_balancer_grpc.pb.go index a091b64a0..84e6a2505 100644 --- a/balancer/grpclb/grpc_lb_v1/load_balancer_grpc.pb.go +++ b/balancer/grpclb/grpc_lb_v1/load_balancer_grpc.pb.go @@ -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. diff --git a/channelz/grpc_channelz_v1/channelz_grpc.pb.go b/channelz/grpc_channelz_v1/channelz_grpc.pb.go index 7a626fd53..4587b484f 100644 --- a/channelz/grpc_channelz_v1/channelz_grpc.pb.go +++ b/channelz/grpc_channelz_v1/channelz_grpc.pb.go @@ -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. diff --git a/cmd/protoc-gen-go-grpc/grpc.go b/cmd/protoc-gen-go-grpc/grpc.go index abc216022..2321c8d9b 100644 --- a/cmd/protoc-gen-go-grpc/grpc.go +++ b/cmd/protoc-gen-go-grpc/grpc.go @@ -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.") diff --git a/credentials/alts/internal/proto/grpc_gcp/handshaker_grpc.pb.go b/credentials/alts/internal/proto/grpc_gcp/handshaker_grpc.pb.go index 1ef023cb5..34443b1d2 100644 --- a/credentials/alts/internal/proto/grpc_gcp/handshaker_grpc.pb.go +++ b/credentials/alts/internal/proto/grpc_gcp/handshaker_grpc.pb.go @@ -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. diff --git a/examples/features/proto/echo/echo_grpc.pb.go b/examples/features/proto/echo/echo_grpc.pb.go index 8f0ecf7ce..d8324f62d 100644 --- a/examples/features/proto/echo/echo_grpc.pb.go +++ b/examples/features/proto/echo/echo_grpc.pb.go @@ -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. diff --git a/examples/helloworld/helloworld/helloworld_grpc.pb.go b/examples/helloworld/helloworld/helloworld_grpc.pb.go index f55cc8752..1e31c83a8 100644 --- a/examples/helloworld/helloworld/helloworld_grpc.pb.go +++ b/examples/helloworld/helloworld/helloworld_grpc.pb.go @@ -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. diff --git a/examples/route_guide/routeguide/route_guide_grpc.pb.go b/examples/route_guide/routeguide/route_guide_grpc.pb.go index adfac1965..3777d1b7c 100644 --- a/examples/route_guide/routeguide/route_guide_grpc.pb.go +++ b/examples/route_guide/routeguide/route_guide_grpc.pb.go @@ -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. diff --git a/health/grpc_health_v1/health_grpc.pb.go b/health/grpc_health_v1/health_grpc.pb.go index 5ac30c41c..f96b8ab49 100644 --- a/health/grpc_health_v1/health_grpc.pb.go +++ b/health/grpc_health_v1/health_grpc.pb.go @@ -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. diff --git a/internal/proto/grpc_lookup_v1/rls_grpc.pb.go b/internal/proto/grpc_lookup_v1/rls_grpc.pb.go index 26b28a6fb..23dcb2100 100644 --- a/internal/proto/grpc_lookup_v1/rls_grpc.pb.go +++ b/internal/proto/grpc_lookup_v1/rls_grpc.pb.go @@ -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. diff --git a/interop/grpc_testing/benchmark_service_grpc.pb.go b/interop/grpc_testing/benchmark_service_grpc.pb.go index 4c23a6414..cd5d64d7e 100644 --- a/interop/grpc_testing/benchmark_service_grpc.pb.go +++ b/interop/grpc_testing/benchmark_service_grpc.pb.go @@ -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. diff --git a/interop/grpc_testing/report_qps_scenario_service_grpc.pb.go b/interop/grpc_testing/report_qps_scenario_service_grpc.pb.go index 1c8a68fe5..9198e4a6e 100644 --- a/interop/grpc_testing/report_qps_scenario_service_grpc.pb.go +++ b/interop/grpc_testing/report_qps_scenario_service_grpc.pb.go @@ -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. diff --git a/interop/grpc_testing/test_grpc.pb.go b/interop/grpc_testing/test_grpc.pb.go index 44690401b..2e35398ed 100644 --- a/interop/grpc_testing/test_grpc.pb.go +++ b/interop/grpc_testing/test_grpc.pb.go @@ -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. diff --git a/interop/grpc_testing/worker_service_grpc.pb.go b/interop/grpc_testing/worker_service_grpc.pb.go index c247f6b04..40cb6949f 100644 --- a/interop/grpc_testing/worker_service_grpc.pb.go +++ b/interop/grpc_testing/worker_service_grpc.pb.go @@ -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. diff --git a/interop/stress/grpc_testing/metrics_grpc.pb.go b/interop/stress/grpc_testing/metrics_grpc.pb.go index de0d65d8c..2ce1771fd 100644 --- a/interop/stress/grpc_testing/metrics_grpc.pb.go +++ b/interop/stress/grpc_testing/metrics_grpc.pb.go @@ -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. diff --git a/profiling/proto/service_grpc.pb.go b/profiling/proto/service_grpc.pb.go index d47cd363a..4ff100173 100644 --- a/profiling/proto/service_grpc.pb.go +++ b/profiling/proto/service_grpc.pb.go @@ -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. diff --git a/reflection/grpc_reflection_v1/reflection_grpc.pb.go b/reflection/grpc_reflection_v1/reflection_grpc.pb.go index 95db9c5a4..031082807 100644 --- a/reflection/grpc_reflection_v1/reflection_grpc.pb.go +++ b/reflection/grpc_reflection_v1/reflection_grpc.pb.go @@ -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. diff --git a/reflection/grpc_reflection_v1alpha/reflection_grpc.pb.go b/reflection/grpc_reflection_v1alpha/reflection_grpc.pb.go index a85170bf5..80755d74d 100644 --- a/reflection/grpc_reflection_v1alpha/reflection_grpc.pb.go +++ b/reflection/grpc_reflection_v1alpha/reflection_grpc.pb.go @@ -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. diff --git a/reflection/grpc_testing/test_grpc.pb.go b/reflection/grpc_testing/test_grpc.pb.go index 3d317fd85..3a7e8e623 100644 --- a/reflection/grpc_testing/test_grpc.pb.go +++ b/reflection/grpc_testing/test_grpc.pb.go @@ -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.