Browse Source

change SnapshotRequest to RequestSnapshot

Xiang Li 12 years ago
parent
commit
749a89d5a5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      raft_handlers.go

+ 1 - 1
raft_handlers.go

@@ -61,7 +61,7 @@ func SnapshotHttpHandler(w http.ResponseWriter, req *http.Request) {
 	err := decodeJsonRequest(req, aereq)
 	err := decodeJsonRequest(req, aereq)
 	if err == nil {
 	if err == nil {
 		debug("[recv] POST http://%s/snapshot/ ", raftServer.Name())
 		debug("[recv] POST http://%s/snapshot/ ", raftServer.Name())
-		if resp := raftServer.SnapshotRequest(aereq); resp != nil {
+		if resp := raftServer.RequestSnapshot(aereq); resp != nil {
 			w.WriteHeader(http.StatusOK)
 			w.WriteHeader(http.StatusOK)
 			json.NewEncoder(w).Encode(resp)
 			json.NewEncoder(w).Encode(resp)
 			return
 			return