internal/jsonrpc2_v2: refactor Reader/Writer and remove event dependency
In preparation for extracting the jsonrpc2_v2 package, update the Reader and Writer interfaces to not report byte counts, and remove the internal/event dependency. Change-Id: Ie6b373736fe297c8427cd4ece7ddad33e275864b Reviewed-on: https://go-review.googlesource.com/c/tools/+/678956 Reviewed-by: Alan Donovan <adonovan@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
bd88cac942
commit
82be9ce756
1 changed files with 102 additions and 167 deletions
|
|
@ -38,7 +38,7 @@ func TestBatchFraming(t *testing.T) {
|
|||
read := make(chan jsonrpc2.Message)
|
||||
go func() {
|
||||
for range 2 {
|
||||
msg, _, _ := tport.Read(ctx)
|
||||
msg, _ := tport.Read(ctx)
|
||||
read <- msg
|
||||
}
|
||||
}()
|
||||
|
|
|
|||
Loading…
Reference in a new issue