Skip to content

Commit

Permalink
Add option to use packed encoding in rpc.StreamTransport. (#161)
Browse files Browse the repository at this point in the history
Changelog:

* Eschew rpc.StreamTransport in favor of generic codec-based transport (unexported).

* Add codec for generic stream transport.

* Add codec for stream transport with packed encoding.

* Add NewCodecTransport and NewPackedStreamTransport constructors.

* Replace mutex-protected error in transport with atomic.Value.
  This improves legibility by disambiguating what the mutex is locking,
  and by makin error lookup/setting semantics explicit.
  • Loading branch information
lthibault authored Mar 3, 2021
1 parent 5af9506 commit e0eb98e
Show file tree
Hide file tree
Showing 2 changed files with 189 additions and 80 deletions.
Loading

0 comments on commit e0eb98e

Please sign in to comment.