From f0b185695ad7a721c69156d281b4dc23ac2d8394 Mon Sep 17 00:00:00 2001 From: Aviv Eyal Date: Mon, 27 Nov 2017 20:38:49 +0200 Subject: [PATCH] fixed typos --- examples/multipro/main.go | 1 + examples/multipro/node.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/multipro/main.go b/examples/multipro/main.go index d3ded936..53efce6c 100644 --- a/examples/multipro/main.go +++ b/examples/multipro/main.go @@ -46,6 +46,7 @@ func main() { log.Printf("This is a conversation between %s and %s\n", h1.host.ID(), h2.host.ID()) + // send messages using the protocols h1.pingProtocol.Ping(h2) h2.pingProtocol.Ping(h1) h1.echoProtocol.Echo(h2) diff --git a/examples/multipro/node.go b/examples/multipro/node.go index c35e30d6..7892bfbb 100644 --- a/examples/multipro/node.go +++ b/examples/multipro/node.go @@ -46,7 +46,7 @@ func NewMessageData(nodeId string, messageId string, gossip bool) *p2p.MessageDa type Node struct { host host.Host // lib-p2p host pingProtocol *PingProtocol // ping protocol impl - echoProtocol *EchoProtocol // echp protocl imp + echoProtocol *EchoProtocol // echo protocol impl } // create a new node with its implemented protocols