Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to use packed encoding in rpc.StreamTransport. (#161)
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