1
0
Fork 0
mirror of https://github.com/sourcegraph/jsonrpc2.git synced 2026-06-16 04:04:56 +02:00
Commit graph

7 commits

Author SHA1 Message Date
Quinn Slack
375ca94e9c add go module, simplify some cleanups 2019-11-02 21:39:58 -07:00
s3rj1k
456318691a fix some golangci-lint, revive linter warnings
Signed-off-by: s3rj1k <evasive.gyron@gmail.com>
2019-11-02 22:31:31 +02:00
Stephen Gutekanst
c9e82539c3 add support for suppressing ErrClosed in HandlerWithError logs 2018-02-09 17:25:59 -07:00
Quinn Slack
c0f3aff61f remove incorrect special handling of null results
It is not correct in general to convert null results in JSON-RPC 2.0 responses to `{}`.
2017-01-22 15:34:08 -08:00
Keegan Carruthers-Smith
7e53931322 Use correct format string for ID
Audited all calls for Printf. Noticed the following in some logs

```
jsonrpc2 handler: sending response {1 %!d(string=) %!d(bool=false)}: jsonrpc2: connection is closed
```
2016-11-14 21:17:22 +02:00
Nico Tonozzi
2e4214c77b Send something over the wire for responses
I accidentally made this change in the main repo, instead of here.

This ensures that the server can tell the difference between a response and a request. The old method (resp == nil) didn't work because we use interfaces here, and the interfaces would often have types, but not values.
2016-10-28 16:46:40 -07:00
Quinn Slack
c04eec1600 initial commit 2016-10-11 15:56:18 +02:00