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

cleanup changes from PR

parent 4493535d
...@@ -2,13 +2,10 @@ package discovery ...@@ -2,13 +2,10 @@ package discovery
import ( import (
"errors" "errors"
"fmt"
"io" "io"
"io/ioutil" "io/ioutil"
golog "log" golog "log"
"net" "net"
//"strconv"
//"strings"
"sync" "sync"
"time" "time"
...@@ -75,8 +72,6 @@ func NewMdnsService(peerhost host.Host, interval time.Duration) (Service, error) ...@@ -75,8 +72,6 @@ func NewMdnsService(peerhost host.Host, interval time.Duration) (Service, error)
port = addr.Port port = addr.Port
} }
fmt.Println("using port: ", port)
myid := peerhost.ID().Pretty() myid := peerhost.ID().Pretty()
info := []string{myid} info := []string{myid}
...@@ -135,7 +130,6 @@ func (m *mdnsService) pollForEntries() { ...@@ -135,7 +130,6 @@ func (m *mdnsService) pollForEntries() {
} }
func (m *mdnsService) handleEntry(e *mdns.ServiceEntry) { func (m *mdnsService) handleEntry(e *mdns.ServiceEntry) {
fmt.Println("handling entry!")
mpeer, err := peer.IDB58Decode(e.Info) mpeer, err := peer.IDB58Decode(e.Info)
if err != nil { if err != nil {
log.Warning("Error parsing peer ID from mdns entry: ", err) 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