unimplemented_call.patch 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --- a/Sources/GRPCInteroperabilityTestModels/Generated/test.grpc.swift
  2. +++ b/Sources/GRPCInteroperabilityTestModels/Generated/test.grpc.swift
  3. @@ -931,10 +931,6 @@
  4. /// stream of responses are returned to the client when the server starts with
  5. /// first request.
  6. func halfDuplexCall(context: StreamingResponseCallContext<Grpc_Testing_StreamingOutputCallResponse>) -> EventLoopFuture<(StreamEvent<Grpc_Testing_StreamingOutputCallRequest>) -> Void>
  7. -
  8. - /// The test server will not implement this method. It will be used
  9. - /// to test the behavior when clients call unimplemented methods.
  10. - func unimplementedCall(request: Grpc_Testing_Empty, context: StatusOnlyCallContext) -> EventLoopFuture<Grpc_Testing_Empty>
  11. }
  12. extension Grpc_Testing_TestServiceProvider {
  13. @@ -1010,15 +1006,6 @@
  14. observerFactory: self.halfDuplexCall(context:)
  15. )
  16. - case "UnimplementedCall":
  17. - return UnaryServerHandler(
  18. - context: context,
  19. - requestDeserializer: ProtobufDeserializer<Grpc_Testing_Empty>(),
  20. - responseSerializer: ProtobufSerializer<Grpc_Testing_Empty>(),
  21. - interceptors: self.interceptors?.makeUnimplementedCallInterceptors() ?? [],
  22. - userFunction: self.unimplementedCall(request:context:)
  23. - )
  24. -
  25. default:
  26. return nil
  27. }
  28. @@ -1123,13 +1110,6 @@
  29. responseStream: GRPCAsyncResponseStreamWriter<Grpc_Testing_StreamingOutputCallResponse>,
  30. context: GRPCAsyncServerCallContext
  31. ) async throws
  32. -
  33. - /// The test server will not implement this method. It will be used
  34. - /// to test the behavior when clients call unimplemented methods.
  35. - @Sendable func unimplementedCall(
  36. - request: Grpc_Testing_Empty,
  37. - context: GRPCAsyncServerCallContext
  38. - ) async throws -> Grpc_Testing_Empty
  39. }
  40. @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)
  41. @@ -1210,15 +1190,6 @@
  42. wrapping: self.halfDuplexCall(requests:responseStream:context:)
  43. )
  44. - case "UnimplementedCall":
  45. - return GRPCAsyncServerHandler(
  46. - context: context,
  47. - requestDeserializer: ProtobufDeserializer<Grpc_Testing_Empty>(),
  48. - responseSerializer: ProtobufSerializer<Grpc_Testing_Empty>(),
  49. - interceptors: self.interceptors?.makeUnimplementedCallInterceptors() ?? [],
  50. - wrapping: self.unimplementedCall(request:context:)
  51. - )
  52. -
  53. default:
  54. return nil
  55. }