Skip to content

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

Merged
lthibault merged 2 commits into
capnproto:mainfrom
zenhack:transport-package
May 24, 2022
Merged

Move Transport into its own package, and export transport.NewPipe#252
lthibault merged 2 commits into
capnproto:mainfrom
zenhack:transport-package

Conversation

@zenhack

@zenhack zenhack commented May 24, 2022

Copy link
Copy Markdown
Contributor

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.

zenhack added 2 commits May 24, 2022 12:45
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