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 003de09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ publish-rs:

publish-py:
cd binding/python && make publish && cd ../../

zel:
zellij --layout misc/bootstrap-3-node-static-cluster.zellij.kdl
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 003de09

Please sign in to comment.