From: Sergey Matveev Date: Fri, 1 May 2015 19:26:38 +0000 (+0300) Subject: Nicer code construction X-Git-Tag: 3.0^2~11 X-Git-Url: http://www.git.cypherpunks.ru/?a=commitdiff_plain;h=f6f7af5c6255b33a0e1ec3962f13da549cde0076;p=govpn.git Nicer code construction Signed-off-by: Sergey Matveev --- 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)