aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/rlpx.go
diff options
context:
space:
mode:
authorANOTHEL <anothel1@naver.com>2019-04-10 16:49:02 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-04-10 16:49:02 +0800
commit3fa76298e464345868c29a803eeec66c148c8443 (patch)
treeb2b998817cd8bcdb7516187bdf207c1163934bb2 /p2p/rlpx.go
parente4cb7b80d59a4154327ea96f4a040ef18ef90c5b (diff)
downloadgo-tangerine-3fa76298e464345868c29a803eeec66c148c8443.tar
go-tangerine-3fa76298e464345868c29a803eeec66c148c8443.tar.gz
go-tangerine-3fa76298e464345868c29a803eeec66c148c8443.tar.bz2
go-tangerine-3fa76298e464345868c29a803eeec66c148c8443.tar.lz
go-tangerine-3fa76298e464345868c29a803eeec66c148c8443.tar.xz
go-tangerine-3fa76298e464345868c29a803eeec66c148c8443.tar.zst
go-tangerine-3fa76298e464345868c29a803eeec66c148c8443.zip
p2p: remove useless parameter (#19433)
Diffstat (limited to 'p2p/rlpx.go')
-rw-r--r--p2p/rlpx.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/p2p/rlpx.go b/p2p/rlpx.go
index 67cc1d9bf..0697ef3b0 100644
--- a/p2p/rlpx.go
+++ b/p2p/rlpx.go
@@ -128,7 +128,7 @@ func (t *rlpx) doProtoHandshake(our *protoHandshake) (their *protoHandshake, err
// as the error so it can be tracked elsewhere.
werr := make(chan error, 1)
go func() { werr <- Send(t.rw, handshakeMsg, our) }()
- if their, err = readProtocolHandshake(t.rw, our); err != nil {
+ if their, err = readProtocolHandshake(t.rw); err != nil {
<-werr // make sure the write terminates too
return nil, err
}
@@ -141,7 +141,7 @@ func (t *rlpx) doProtoHandshake(our *protoHandshake) (their *protoHandshake, err
return their, nil
}
-func readProtocolHandshake(rw MsgReader, our *protoHandshake) (*protoHandshake, error) {
+func readProtocolHandshake(rw MsgReader) (*protoHandshake, error) {
msg, err := rw.ReadMsg()
if err != nil {
return nil, err