[tor-commits] [snowflake/master] go fmt

dcf at torproject.org dcf at torproject.org
Thu Aug 3 02:35:44 UTC 2017


commit 1966612113d1583f9bbe458611e7ffcf19b8f257
Author: David Fifield <david at bamsoftware.com>
Date:   Fri Jul 14 20:06:00 2017 -0700

    go fmt
---
 broker/broker.go | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/broker/broker.go b/broker/broker.go
index e3aecb1..f56f31b 100644
--- a/broker/broker.go
+++ b/broker/broker.go
@@ -7,15 +7,15 @@ package main
 
 import (
 	"container/heap"
+	"flag"
 	"fmt"
 	"io/ioutil"
 	"log"
 	"net"
 	"net/http"
-	"time"
-	"sync"
 	"os"
-	"flag"
+	"sync"
+	"time"
 )
 
 const (
@@ -240,7 +240,6 @@ func main() {
 
 	flag.Parse()
 
-
 	if cert == "" || cert_key == "" {
 		log.Println("Missing options, exiting.")
 		fmt.Println("Usage:")
@@ -267,18 +266,18 @@ func main() {
 	wg.Add(2)
 
 	//Run HTTP server
-	go func(){
+	go func() {
 		defer wg.Done()
-		err := http.ListenAndServe(":" + http_port, nil)
+		err := http.ListenAndServe(":"+http_port, nil)
 		if err != nil {
 			log.Println("ListenAndServe: ", err)
 		}
 	}()
 
 	//Run HTTPS server
-	go func(){
+	go func() {
 		defer wg.Done()
-		err := http.ListenAndServeTLS(":" + https_port, cert, cert_key, nil)
+		err := http.ListenAndServeTLS(":"+https_port, cert, cert_key, nil)
 		if err != nil {
 			log.Println("ListenAndServeTLS: ", err)
 		}





More information about the tor-commits mailing list