fixes from review

This commit is contained in:
Ethan Buchman 2018-10-05 23:49:28 -04:00
parent 2765f76e37
commit a5af433e72
1 changed files with 1 additions and 1 deletions

View File

@ -585,7 +585,7 @@ func readMsg(r io.Reader) (msg SocketPVMsg, err error) {
// set deadline before trying to read
conn := r.(net.Conn)
if err := conn.SetDeadline(time.Now().Add(time.Second * defaultConnDeadlineSeconds)); err != nil {
err = cmn.ErrorWrap(err, "setting connection timeout failedin readMsg")
err = cmn.ErrorWrap(err, "setting connection timeout failed in readMsg")
return msg, err
}