forked from TrueCloudLab/neoneo-go
rpc: improve WS connection closure error a bit
Ref. https://github.com/nspcc-dev/neofs-node/pull/1480#issuecomment-1147256917.
This commit is contained in:
parent
c6ced9b24a
commit
7dcbfcbbdb
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