Merge pull request #20 from stevvooe/pump-read-block

ttrpc: refactor channel to take a conn
This commit is contained in:
Stephen Day
2018-01-16 15:50:42 -08:00
committed by GitHub
4 changed files with 59 additions and 34 deletions

View File

@@ -35,7 +35,7 @@ func NewClient(conn net.Conn) *Client {
c := &Client{
codec: codec{},
conn: conn,
channel: newChannel(conn, conn),
channel: newChannel(conn),
calls: make(chan *callRequest),
closed: make(chan struct{}),
done: make(chan struct{}),