Skip to content

Commit

Permalink
fix: Add missing /put in example
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Aug 31, 2024
1 parent 202fe26 commit 6b85456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/memstore/src/web_server_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use super::state_machine::{HashStore, LogEntry};

type Raft = Raft_<LogEntry, HashStore>;

#[put("/{id}/{value}")]
#[put("/put/{id}/{value}")]
async fn put(data: web::Data<(HashStore, Raft)>, path: web::Path<(u64, String)>) -> impl Responder {
let log_entry = LogEntry::Insert {
key: path.0,
Expand Down

0 comments on commit 6b85456

Please sign in to comment.