gofmt -w ethereum.go

This commit is contained in:
Jarrad Hope 2014-03-07 11:11:11 +01:00
parent 9d887234ea
commit 694ef47041

View File

@ -265,7 +265,7 @@ func (s *Ethereum) Start() {
ethutil.Config.Log.Debugln("Seeding") ethutil.Config.Log.Debugln("Seeding")
// DNS Bootstrapping // DNS Bootstrapping
_, nodes, err := net.LookupSRV("eth", "tcp", "ethereum.org") _, nodes, err := net.LookupSRV("eth", "tcp", "ethereum.org")
if(err == nil) { if err == nil {
peers := []string{} peers := []string{}
// Iterate SRV nodes // Iterate SRV nodes
for _, n := range nodes { for _, n := range nodes {
@ -273,7 +273,7 @@ func (s *Ethereum) Start() {
port := strconv.Itoa(int(n.Port)) port := strconv.Itoa(int(n.Port))
// Resolve target to ip (Go returns list, so may resolve to multiple ips?) // Resolve target to ip (Go returns list, so may resolve to multiple ips?)
addr, err := net.LookupHost(target) addr, err := net.LookupHost(target)
if(err == nil) { if err == nil {
for _, a := range addr { for _, a := range addr {
// Build string out of SRV port and Resolved IP // Build string out of SRV port and Resolved IP
peer := net.JoinHostPort(a, port) peer := net.JoinHostPort(a, port)