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

Move Transport into its own package, and export transport.NewPipe #252

Merged
merged 2 commits into from
May 24, 2022

Conversation

zenhack
Copy link
Contributor

@zenhack zenhack commented May 24, 2022

This patch:

  • moves the contents of transport.go (and related test files)
    into a new transport package,
  • Removes *Transport from the name of some functions, since it is now
    redundant with the package name.
  • exports the newPipe function as transport.NewPipe; it is needed by
    other tests in the rpc package, and probably useful in its own right
    anyway (outside of tests).
  • Adds aliases for the stuff that's been moved, for compatibility.

This is the beginning of a larger effort to split up the rpc package,
which is large and has somewhat vague internal abstraction boundaries.

This patch:

- moves the contents of transport.go (and related test files)
  into a new transport package,
- Removes *Transport from the name of some functions, since it is now
  redundant with the package name.
- exports the newPipe function as transport.NewPipe; it is needed by
  other tests in the rpc package, and probably useful in its own right
  anyway (outside of tests).
- Adds aliases for the stuff that's been moved, for compatibility.

This is the beginning of a larger effort to split up the rpc package,
which is large and has somewhat vague internal abstraction boundaries.
@lthibault lthibault merged commit 543b509 into capnproto:main May 24, 2022
@zenhack zenhack deleted the transport-package branch May 24, 2022 20:36
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