1
0
Fork 0
mirror of https://github.com/sourcegraph/jsonrpc2.git synced 2026-06-19 05:30:03 +02:00

Expose NoopHandler

This commit is contained in:
Jose Garcia 2021-11-25 16:58:13 +00:00 committed by GitHub
parent c9c77b6bb9
commit e8229febb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 12 deletions

View file

@ -26,13 +26,13 @@ func TestSetLogger(t *testing.T) {
connA := jsonrpc2.NewConn(
ctx,
jsonrpc2.NewBufferedStream(a, jsonrpc2.VSCodeObjectCodec{}),
noopHandler{},
jsonrpc2.NoopHandler{},
jsonrpc2.SetLogger(logger),
)
connB := jsonrpc2.NewConn(
ctx,
jsonrpc2.NewBufferedStream(b, jsonrpc2.VSCodeObjectCodec{}),
noopHandler{},
jsonrpc2.NoopHandler{},
)
defer connA.Close()
defer connB.Close()