mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-27 03:58:06 +00:00
Merge pull request #2540 from nspcc-dev/adjust-ws-err
rpc: improve WS connection closure error a bit
This commit is contained in:
commit
de6cdb6d5a
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ writeloop:
|
|||
break writeloop
|
||||
}
|
||||
if err := c.ws.WriteJSON(req); err != nil {
|
||||
connCloseErr = fmt.Errorf("failed to write JSON request: %w", err)
|
||||
connCloseErr = fmt.Errorf("failed to write JSON request (%s / %d): %w", req.Method, len(req.RawParams), err)
|
||||
break writeloop
|
||||
}
|
||||
case <-pingTicker.C:
|
||||
|
|
Loading…
Reference in a new issue