From 994a3c10caf62efa6e36274b984786ca65df3a93 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 20 Apr 2017 15:50:06 -0700 Subject: [PATCH] brontide+lnwire: fix linter issues --- brontide/conn.go | 6 +++--- lnwire/message.go | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/brontide/conn.go b/brontide/conn.go index fb0d1d7a..7cda1a0a 100644 --- a/brontide/conn.go +++ b/brontide/conn.go @@ -84,9 +84,9 @@ func Dial(localPriv *btcec.PrivateKey, netAddr *lnwire.NetAddress) (*Conn, error return b, nil } -// ReadMessage uses the connection in a message-oriented instructing it to read -// the next _full_ message with the brontide stream. This function will block -// until the read succeeds. +// ReadNextMessage uses the connection in a message-oriented instructing it to +// read the next _full_ message with the brontide stream. This function will +// block until the read succeeds. func (c *Conn) ReadNextMessage() ([]byte, error) { return c.noise.ReadMessage(c.conn) } diff --git a/lnwire/message.go b/lnwire/message.go index 3b604b66..4d9e5918 100644 --- a/lnwire/message.go +++ b/lnwire/message.go @@ -20,6 +20,8 @@ const MaxMessagePayload = 65535 // 65KB // confidential+authenticated cryptographic messaging protocol. type MessageType uint16 +// The currently defined message types within this current version of the +// Lightning protocol. const ( MsgInit MessageType = 16 MsgError = 17