diff --git a/raft_handlers.go b/raft_handlers.go index cfc207f85..e3acb1c41 100644 --- a/raft_handlers.go +++ b/raft_handlers.go @@ -61,7 +61,7 @@ func SnapshotHttpHandler(w http.ResponseWriter, req *http.Request) { err := decodeJsonRequest(req, aereq) if err == nil { 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) json.NewEncoder(w).Encode(resp) return