Преглед на файлове

Update search_server.go

Hui Chen преди 10 години
родител
ревизия
ce760b0250
променени са 1 файла, в които са добавени 1 реда и са изтрити 3 реда
  1. 1 3
      examples/codelab/search_server.go

+ 1 - 3
examples/codelab/search_server.go

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