Commit 906944b2 authored by Jeromy's avatar Jeromy
Browse files

cleanup changes from PR

parent 4493535d
......@@ -2,13 +2,10 @@ package discovery
import (
"errors"
"fmt"
"io"
"io/ioutil"
golog "log"
"net"
//"strconv"
//"strings"
"sync"
"time"
......@@ -75,8 +72,6 @@ func NewMdnsService(peerhost host.Host, interval time.Duration) (Service, error)
port = addr.Port
}
fmt.Println("using port: ", port)
myid := peerhost.ID().Pretty()
info := []string{myid}
......@@ -135,7 +130,6 @@ func (m *mdnsService) pollForEntries() {
}
func (m *mdnsService) handleEntry(e *mdns.ServiceEntry) {
fmt.Println("handling entry!")
mpeer, err := peer.IDB58Decode(e.Info)
if err != nil {
log.Warning("Error parsing peer ID from mdns entry: ", err)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment