Skip to content

Commit

Permalink
small docfix, upgrade workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
erhant committed Sep 9, 2024
1 parent d8cfba0 commit f97657d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion 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 @@ -45,7 +45,7 @@ sha3 = "0.10.8"
fastbloom-rs = "0.5.9"

# workflows
ollama-workflows = { git = "https://github.com/andthattoo/ollama-workflows", rev = "aaa887e" }
ollama-workflows = { git = "https://github.com/andthattoo/ollama-workflows", rev = "66e46d2" }

# peer-to-peer
libp2p = { git = "https://github.com/anilaltuner/rust-libp2p.git", rev = "7ce9f9e", features = [
Expand Down
2 changes: 0 additions & 2 deletions src/p2p/behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ fn create_kademlia_behavior(local_peer_id: PeerId) -> kad::Behaviour<MemoryStore
const QUERY_TIMEOUT_SECS: u64 = 5 * 60;
const RECORD_TTL_SECS: u64 = 30;

// TODO: use versioning here?

let mut cfg = Config::new(P2P_KADEMLIA_PROTOCOL);
cfg.set_query_timeout(Duration::from_secs(QUERY_TIMEOUT_SECS))
.set_record_ttl(Some(Duration::from_secs(RECORD_TTL_SECS)));
Expand Down
6 changes: 3 additions & 3 deletions src/p2p/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ impl P2PClient {
log::warn!("Local node is listening on {}", address);
}
SwarmEvent::ExternalAddrConfirmed { address } => {
log::warn!("External address confirmed: {}", address);
log::info!("External address confirmed: {}", address);
}
event => log::trace!("Unhandled Swarm Event: {:?}", event),
}
Expand All @@ -245,7 +245,7 @@ impl P2PClient {
// check protocol string
if info.protocol_version != P2P_PROTOCOL_STRING {
log::warn!(
"Identify: Peer {} has different Identify protocol: (have {}, want {})",
"Identify: Peer {} has different Identify protocol: (them {}, you {})",
peer_id,
info.protocol_version,
P2P_PROTOCOL_STRING
Expand Down Expand Up @@ -274,7 +274,7 @@ impl P2PClient {
.add_address(&peer_id, addr);
} else {
log::warn!(
"Identify: Peer {} has different Kademlia version: (have {}, want {})",
"Identify: Peer {} has different Kademlia version: (them {}, you {})",
peer_id,
kad_protocol,
P2P_KADEMLIA_PROTOCOL
Expand Down

0 comments on commit f97657d

Please sign in to comment.