[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [snowflake/master] go fmt
commit 1966612113d1583f9bbe458611e7ffcf19b8f257
Author: David Fifield <david@xxxxxxxxxxxxxxx>
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)
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits