Skip to content

Should we reduce the amount of generated code? #628

@MrMage

Description

@MrMage

Currently, we have the following in our generated code:

public final class Echo_EchoServiceClient: GRPCServiceClient, Echo_EchoService {
  public let connection: ClientConnection
  public var serviceName: String { return "echo.Echo" }
  public var defaultCallOptions: CallOptions

  /// Creates a client for the echo.Echo service.
  ///
  /// - Parameters:
  ///   - connection: `ClientConnection` to the service host.
  ///   - defaultCallOptions: Options to use for each service call if the user doesn't provide them.
  public init(connection: ClientConnection, defaultCallOptions: CallOptions = CallOptions()) {
    self.connection = connection
    self.defaultCallOptions = defaultCallOptions
  }

Should we inline these properties (except for serviceName) into GRPCServiceClient?

@glbrntt, what do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions