Skip to content

Commit

Permalink
None to Permissive, new libp2p
Browse files Browse the repository at this point in the history
  • Loading branch information
erhant committed Sep 4, 2024
1 parent 1154dd7 commit 4fa7838
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
52 changes: 26 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fastbloom-rs = "0.5.9"
ollama-workflows = { git = "https://github.com/andthattoo/ollama-workflows", rev = "ba038f7" }

# peer-to-peer
libp2p = { git = "https://github.com/anilaltuner/rust-libp2p.git", rev = "3c55e95", features = [
libp2p = { git = "https://github.com/anilaltuner/rust-libp2p.git", rev = "007052d", features = [
# libp2p = { version = "0.54.1", features = [
"dcutr",
"ping",
Expand Down
2 changes: 1 addition & 1 deletion src/p2p/behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ fn create_gossipsub_behavior(author: PeerId) -> gossipsub::Behaviour {

/// We accept permissive validation mode, meaning that we accept all messages
/// and check their fields based on whether they exist or not.
const VALIDATION_MODE: ValidationMode = ValidationMode::None; // FIXME: change this to Permissive
const VALIDATION_MODE: ValidationMode = ValidationMode::Permissive;

/// Heartbeat interval in seconds
const HEARTBEAT_INTERVAL_SECS: u64 = 10;
Expand Down

0 comments on commit 4fa7838

Please sign in to comment.