Browse Source

Update search_server.go

Hui Chen 10 years ago
parent
commit
ce760b0250
1 changed files with 1 additions and 3 deletions
  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)
 }