Skip to content

Conversation

@glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Aug 19, 2021

Motivation:

The NIO module is now a 'shell' module which re-exports NIOCore,
NIOPosix and NIOEmbeeded.

Modifications:

For the GRPC and GRPCTests modules:

  • Replace "import NIO" with "import NIOCore"
  • Add imports for NIOEmbeeded and NIOPosix as necessary

Result:

Imports are closer to what we actually use.

Motivation:

The `NIO` module is now a 'shell' module which re-exports `NIOCore`,
`NIOPosix` and `NIOEmbeeded`.

Modifications:

For the GRPC and GRPCTests modules:
- Replace "import NIO" with "import NIOCore"
- Add imports for NIOEmbeeded and NIOPosix as necessary

Result:

Imports are closer to what we actually use.
@glbrntt glbrntt requested a review from fabianfett August 19, 2021 12:13
@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Aug 19, 2021
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOCore", package: "swift-nio"),
.product(name: "NIOPosix", package: "swift-nio"),
.product(name: "NIOEmbedded", package: "swift-nio"),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know that this is to setup a client for a throughput test, but linking NIOEmbedded looks wrong :) maybe we can change this with a follow up PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sadly it's more than that: the test clients also make use of EmbeddedChannel.

Copy link
Collaborator

@fabianfett fabianfett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should really try to not link NIOEmbedded in GRPC in the future

@glbrntt glbrntt merged commit c88f038 into grpc:main Aug 19, 2021
glbrntt added a commit to glbrntt/grpc-swift that referenced this pull request Aug 19, 2021
Motivation:

The `NIO` module is now a 'shell' module which re-exports `NIOCore`,
`NIOPosix` and `NIOEmbeeded`.

Modifications:

For the GRPC and GRPCTests modules:
- Replace "import NIO" with "import NIOCore"
- Add imports for NIOEmbeeded and NIOPosix as necessary

Result:

Imports are closer to what we actually use.

(cherry picked from commit c88f038)
glbrntt added a commit that referenced this pull request Aug 19, 2021
Motivation:

The `NIO` module is now a 'shell' module which re-exports `NIOCore`,
`NIOPosix` and `NIOEmbeeded`.

Modifications:

For the GRPC and GRPCTests modules:
- Replace "import NIO" with "import NIOCore"
- Add imports for NIOEmbeeded and NIOPosix as necessary

Result:

Imports are closer to what we actually use.

(cherry picked from commit c88f038)
@glbrntt glbrntt deleted the gb-deps branch September 15, 2021 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants