From f6f7af5c6255b33a0e1ec3962f13da549cde0076 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Fri, 1 May 2015 22:26:38 +0300 Subject: [PATCH] Nicer code construction Signed-off-by: Sergey Matveev --- transport.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport.go b/transport.go index 09b8bdd..f15f4fc 100644 --- a/transport.go +++ b/transport.go @@ -296,7 +296,7 @@ func (p *Peer) EthProcess(ethPkt []byte, conn WriteToer, ready chan struct{}) { p.HeartbeatSent++ } - p.NonceOur = p.NonceOur + 2 + p.NonceOur += 2 copy(p.nonce, Emptiness) binary.PutUvarint(p.nonce, p.NonceOur) p.NonceCipher.Encrypt(p.nonce, p.nonce) -- 2.44.0