Skip to content

Commit

Permalink
silly mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg committed Jul 29, 2018
1 parent d2f7019 commit 85aeb74
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions p2p/simulations/adapters/inproc.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,7 @@ func (sn *SimNode) NodeInfo() *p2p.NodeInfo {
}

func setSocketBuffer(conn net.Conn, socketReadBuffer int, socketWriteBuffer int) error {
switch v := conn.(type) {
case *net.UnixConn:
if v, ok := conn.(*net.UnixConn); ok {
err := v.SetReadBuffer(socketReadBuffer)
if err != nil {
return err
Expand All @@ -363,7 +362,6 @@ func setSocketBuffer(conn net.Conn, socketReadBuffer int, socketWriteBuffer int)
if err != nil {
return err
}
default:
return nil
}
return nil
}

0 comments on commit 85aeb74

Please sign in to comment.