diff --git a/examples/multipro/echo.go b/examples/multipro/echo.go index 13d25a65..b726e783 100644 --- a/examples/multipro/echo.go +++ b/examples/multipro/echo.go @@ -50,8 +50,6 @@ func (e *EchoProtocol) onEchoRequest(s inet.Stream) { if !valid { log.Println("Failed to authenticate message") return - } else { - //log.Println("Authenticated request content was generated by author node :-)") } log.Printf("%s: Sending echo response to %s. Message id: %s...", s.Conn().LocalPeer(), s.Conn().RemotePeer(), data.MessageData.Id) @@ -100,8 +98,6 @@ func (e *EchoProtocol) onEchoResponse(s inet.Stream) { if !valid { log.Println("Failed to authenticate message") return - } else { - //log.Println("Authenticated response content generated by claimed node :-)") } // locate request data and remove it if found diff --git a/examples/multipro/main.go b/examples/multipro/main.go index a9738dab..58331c30 100644 --- a/examples/multipro/main.go +++ b/examples/multipro/main.go @@ -27,8 +27,6 @@ func makeRandomNode(port int, done chan bool) *Node { n, _ := swarm.NewNetwork(context.Background(), []ma.Multiaddr{listen}, pid, peerStore, nil) host := bhost.New(n) - log.Printf("New host id (base58 multihash):%s, length:%d", host.ID().Pretty(), len(host.ID().Pretty())) - return NewNode(host, done) } @@ -48,7 +46,7 @@ func main() { log.Printf("This is a conversation between %s and %s\n", h1.ID(), h2.ID()) - // send messages using the protocols + // test implemented protocols h1.Ping(h2.Host) h2.Ping(h1.Host) h1.Echo(h2.Host) diff --git a/examples/multipro/ping.go b/examples/multipro/ping.go index f6261079..9ab8ccfb 100644 --- a/examples/multipro/ping.go +++ b/examples/multipro/ping.go @@ -51,8 +51,6 @@ func (p *PingProtocol) onPingRequest(s inet.Stream) { if !valid { log.Println("Failed to authenticate message") return - } else { - //log.Println("Authenticated request content was generated by claimed node :-)") } // generate response message @@ -99,8 +97,6 @@ func (p *PingProtocol) onPingResponse(s inet.Stream) { if !valid { log.Println("Failed to authenticate message") return - } else { - //log.Println("Authenticated response content generated by claimed node :-)") } // locate request data and remove it if found