brontide+lnwire: fix linter issues
This commit is contained in:
parent
238411ccd5
commit
994a3c10ca
@ -84,9 +84,9 @@ func Dial(localPriv *btcec.PrivateKey, netAddr *lnwire.NetAddress) (*Conn, error
|
|||||||
return b, nil
|
return b, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// ReadMessage uses the connection in a message-oriented instructing it to read
|
// ReadNextMessage uses the connection in a message-oriented instructing it to
|
||||||
// the next _full_ message with the brontide stream. This function will block
|
// read the next _full_ message with the brontide stream. This function will
|
||||||
// until the read succeeds.
|
// block until the read succeeds.
|
||||||
func (c *Conn) ReadNextMessage() ([]byte, error) {
|
func (c *Conn) ReadNextMessage() ([]byte, error) {
|
||||||
return c.noise.ReadMessage(c.conn)
|
return c.noise.ReadMessage(c.conn)
|
||||||
}
|
}
|
||||||
|
@ -20,6 +20,8 @@ const MaxMessagePayload = 65535 // 65KB
|
|||||||
// confidential+authenticated cryptographic messaging protocol.
|
// confidential+authenticated cryptographic messaging protocol.
|
||||||
type MessageType uint16
|
type MessageType uint16
|
||||||
|
|
||||||
|
// The currently defined message types within this current version of the
|
||||||
|
// Lightning protocol.
|
||||||
const (
|
const (
|
||||||
MsgInit MessageType = 16
|
MsgInit MessageType = 16
|
||||||
MsgError = 17
|
MsgError = 17
|
||||||
|
Loading…
Reference in New Issue
Block a user