diff options
author | Ferenc Szabo <frncmx@gmail.com> | 2019-01-11 17:23:45 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2019-01-11 17:23:45 +0800 |
commit | 2eb838ed9776c9c3ec922e1116a5d50babda31c5 (patch) | |
tree | 1ad75862e2c0e7bcff2ec898c1f757c58eaaa650 /p2p/simulations/adapters/inproc.go | |
parent | 38cce9ac333d674616047be14c270d7cfbd43641 (diff) | |
download | dexon-2eb838ed9776c9c3ec922e1116a5d50babda31c5.tar.gz dexon-2eb838ed9776c9c3ec922e1116a5d50babda31c5.tar.zst dexon-2eb838ed9776c9c3ec922e1116a5d50babda31c5.zip |
p2p/simulations: eliminate concept of pivot (#18426)
Diffstat (limited to 'p2p/simulations/adapters/inproc.go')
-rw-r--r-- | p2p/simulations/adapters/inproc.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/p2p/simulations/adapters/inproc.go b/p2p/simulations/adapters/inproc.go index d122cd648..eada9579e 100644 --- a/p2p/simulations/adapters/inproc.go +++ b/p2p/simulations/adapters/inproc.go @@ -351,17 +351,3 @@ func (sn *SimNode) NodeInfo() *p2p.NodeInfo { } return server.NodeInfo() } - -func setSocketBuffer(conn net.Conn, socketReadBuffer int, socketWriteBuffer int) error { - if v, ok := conn.(*net.UnixConn); ok { - err := v.SetReadBuffer(socketReadBuffer) - if err != nil { - return err - } - err = v.SetWriteBuffer(socketWriteBuffer) - if err != nil { - return err - } - } - return nil -} |