1
0
Fork 0
mirror of https://github.com/sourcegraph/jsonrpc2.git synced 2026-08-23 21:48:12 +02:00

minor logging fixes

Signed-off-by: s3rj1k <evasive.gyron@gmail.com>
This commit is contained in:
s3rj1k 2019-11-07 23:44:16 +02:00
parent 3bf62ad25c
commit 81af42d766
3 changed files with 4 additions and 4 deletions

View file

@ -43,7 +43,7 @@ func LogMessages(logger Logger) ConnOpt {
OnRecv(func(req *Request, resp *Response) {
switch {
case req != nil && resp == nil:
case req != nil:
mu.Lock()
reqMethods[req.ID] = req.Method
mu.Unlock()