Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename generated clients from FooServiceClient to FooClient #736

Merged
merged 1 commit into from
Mar 6, 2020

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Mar 6, 2020

Motivation:

Issue #735 highlighted that the naming of generated clients is clunky.
Let's improve it before the API is locked down.

Note: it's possible to create a shim to create fix-its for this by creating a
typealias from the old name to the new name, and then deprecating the
typealias:

@available(*, deprecated, renamed: "Echo_EchoClient")
typealias Echo_EchoServiceClient = Echo_EchoClient

Modifications:

  • Update codegen
  • Regenerate clients and update usages

Result:

Generate clients have better names

@glbrntt
Copy link
Collaborator Author

glbrntt commented Mar 6, 2020

cc @Davidde94

Motivation:

Issue grpc#735 highlighted that the naming of generated clients is clunky.
Let's improve it before the API is locked down.

Note: it's possible to create a shim to create fix-its for this by creating a
typealias from the old name to the new name, and then deprecating the
typealias:

```swift
@available(*, deprecated, renamed: "Echo_EchoClient")
typealias Echo_EchoServiceClient = Echo_EchoClient
```

Modifications:

- Update codegen
- Regenerate clients and update usages

Result:

Generate clients have better names
@glbrntt glbrntt force-pushed the gb-client-generator-renaming branch from 4184fcf to 8b04565 Compare March 6, 2020 15:26
@glbrntt glbrntt merged commit 2048948 into grpc:nio Mar 6, 2020
@glbrntt glbrntt deleted the gb-client-generator-renaming branch March 6, 2020 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants