Skip to content

Commit

Permalink
Merge pull request #39 from algorealmInc/dev
Browse files Browse the repository at this point in the history
Replication: Eventual and Strong Consistency for SwarmNL
  • Loading branch information
sacha-l authored Dec 10, 2024
2 parents 496814e + 0951bc5 commit cd6a3ef
Show file tree
Hide file tree
Showing 45 changed files with 5,171 additions and 1,668 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ Cargo.lock
*.pdb

# Ignore the client dir. It's for local experimental testing
client/
# client
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ For communication, SwarmNL leverages the powerful capabilities of libp2p. These
// Prepare a RPC fetch request
let fetch_key = vec!["SomeFetchKey".as_bytes().to_vec()];

let fetch_request = AppData::FetchData {
let fetch_request = AppData::SendRpc {
keys: fetch_key.clone(),
peer: node4_peer_id,
};
Expand All @@ -222,7 +222,7 @@ For communication, SwarmNL leverages the powerful capabilities of libp2p. These
// Poll for the result
if let Ok(result) = node.recv_from_network(stream_id).await {
// Here, the request data was simply echoed by the remote peer
assert_eq!(AppResponse::FetchData(fetch_key), result);
assert_eq!(AppResponse::SendRpc(fetch_key), result);
}

// c. Gossiping e.g
Expand Down
4 changes: 2 additions & 2 deletions client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "model"
name = "node_cloning_model"
version = "0.2.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
rust-ini = "0.20.0"
swarm_nl = { path = "../swarm_nl", features = ["async-std-runtime"] }
swarm_nl = { path = "../swarm_nl", features = ["tokio-runtime"] }
tokio = { version = "1.37.0", features = ["full"] }
# async-std = { version = "1.12", features = ["attributes"] }
rand = "0.8.5"
Expand Down
Loading

0 comments on commit cd6a3ef

Please sign in to comment.