Procházet zdrojové kódy

Update search_server.go

Hui Chen před 10 roky
rodič
revize
ce760b0250
1 změnil soubory, kde provedl 1 přidání a 3 odebrání
  1. 1 3
      examples/codelab/search_server.go

+ 1 - 3
examples/codelab/search_server.go

@@ -152,8 +152,6 @@ func main() {
 		IndexerInitOptions: &types.IndexerInitOptions{
 		IndexerInitOptions: &types.IndexerInitOptions{
 			IndexType: types.LocationsIndex,
 			IndexType: types.LocationsIndex,
 		},
 		},
-		UsePersistentStorage:    true,
-		PersistentStorageFolder: "db",
 	})
 	})
 	wbs = make(map[uint64]Weibo)
 	wbs = make(map[uint64]Weibo)
 
 
@@ -174,5 +172,5 @@ func main() {
 	http.HandleFunc("/json", JsonRpcServer)
 	http.HandleFunc("/json", JsonRpcServer)
 	http.Handle("/", http.FileServer(http.Dir("static")))
 	http.Handle("/", http.FileServer(http.Dir("static")))
 	log.Print("服务器启动")
 	log.Print("服务器启动")
-	http.ListenAndServe("localhost:8080", nil)
+	http.ListenAndServe(":8080", nil)
 }
 }