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:
parent
3bf62ad25c
commit
81af42d766
3 changed files with 4 additions and 4 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue