change SnapshotRequest to RequestSnapshot
parent
732f80ceda
commit
749a89d5a5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue