Browse Source

Moved port into fncall.

Edward Bramanti 10 years ago
parent
commit
570da1ff05
1 changed files with 1 additions and 2 deletions
  1. 1 2
      frameworks/Go/go-mongodb/src/hello/hello.go

+ 1 - 2
frameworks/Go/go-mongodb/src/hello/hello.go

@@ -58,7 +58,6 @@ func (s ByMessage) Less(i, j int) bool {
 }
 
 func main() {
-	port := ":8080"
 	runtime.GOMAXPROCS(runtime.NumCPU())
 	if session, err := mgo.Dial(connectionString); err != nil {
 		log.Fatalf("Error opening database: %v", err)
@@ -74,7 +73,7 @@ func main() {
 		http.HandleFunc("/queries", queriesHandler)
 		http.HandleFunc("/update", updateHandler)
 		http.HandleFunc("/plaintext", plaintextHandler)
-		http.ListenAndServe(port, nil)
+		http.ListenAndServe(":8080", nil)
 	}
 }