lnwire: re-add .String() to the lnwire.Message interface
This commit is contained in:
3 files changed
+23
-2
No files matched your search
+11
-1
@@ -1,6 +1,9 @@
|
||||
package lnwire
|
||||
|
||||
import "io"
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
)
|
||||
|
||||
// Pong defines a message which is the direct response to a received Ping
|
||||
// message. A Pong reply indicates that a connection is still active. The Pong
|
||||
@@ -75,3 +78,10 @@ func (p *Pong) MaxPayloadLength(uint32) uint32 {
|
||||
func (p *Pong) Validate() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// String returns the string representation of the target Pong.
|
||||
//
|
||||
// This is part of the lnwire.Message interface.
|
||||
func (p *Pong) String() string {
|
||||
return fmt.Sprintf("Pong(%v)", p.Nonce)
|
||||
}
|
||||
Reference in new issue
Block a user