From f97657db71c8813af1e1981b99a1873eadc87301 Mon Sep 17 00:00:00 2001 From: erhant Date: Mon, 9 Sep 2024 12:01:47 +0300 Subject: [PATCH] small docfix, upgrade workflows --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/p2p/behaviour.rs | 2 -- src/p2p/client.rs | 6 +++--- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9857119..2a3588b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3457,7 +3457,7 @@ dependencies = [ [[package]] name = "ollama-workflows" version = "0.1.0" -source = "git+https://github.com/andthattoo/ollama-workflows?rev=aaa887e#aaa887e41dbd9851adc3cb4908d74f327e925d0d" +source = "git+https://github.com/andthattoo/ollama-workflows?rev=66e46d2#66e46d2767de613c58745f05204ce64cd459f96e" dependencies = [ "async-trait", "colored", diff --git a/Cargo.toml b/Cargo.toml index aeab938..c2bc262 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 = [ diff --git a/src/p2p/behaviour.rs b/src/p2p/behaviour.rs index e5f04c8..5263d18 100644 --- a/src/p2p/behaviour.rs +++ b/src/p2p/behaviour.rs @@ -41,8 +41,6 @@ fn create_kademlia_behavior(local_peer_id: PeerId) -> kad::Behaviour { - log::warn!("External address confirmed: {}", address); + log::info!("External address confirmed: {}", address); } event => log::trace!("Unhandled Swarm Event: {:?}", event), } @@ -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 @@ -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