Minor cleanups

This commit is contained in:
9seconds
2018-07-03 10:41:10 +03:00
parent 812b5e6e0b
commit daddf50390
3 changed files with 8 additions and 11 deletions
+1 -4
View File
@@ -8,8 +8,7 @@ const (
rpcHandshakeSenderPIDLength = 12
rpcHandshakePeerPIDLength = rpcHandshakeSenderPIDLength
rpcHandshakeRequestLength = rpcHandshakeTagLength + rpcHandshakeFlagsLength +
rpcHandshakeSenderPIDLength + rpcHandshakePeerPIDLength
rpcHandshakeRequestLength = rpcHandshakeTagLength + rpcHandshakeFlagsLength + rpcHandshakeSenderPIDLength + rpcHandshakePeerPIDLength
)
var (
@@ -18,8 +17,6 @@ var (
rpcHandshakeTag = [rpcHandshakeTagLength]byte{0xf5, 0xee, 0x82, 0x76}
rpcHandshakeFlags = [rpcHandshakeFlagsLength]byte{0x00, 0x00, 0x00, 0x00}
rpcHandshakeBuffer *bytes.Buffer
)
type RPCHandshakeRequest struct {
+1 -2
View File
@@ -16,8 +16,7 @@ const (
rpcNonceTagLength = 4
rpcNonceCryptoAESLength = 4
rpcNonceRequestLength = rpcNonceTagLength + rpcNonceKeySelectorLength +
rpcNonceCryptoAESLength + rpcNonceCryptoTSLength + rpcNonceLength
rpcNonceRequestLength = rpcNonceTagLength + rpcNonceKeySelectorLength + rpcNonceCryptoAESLength + rpcNonceCryptoTSLength + rpcNonceLength
)
var (