diff options
author | hozan23 <hozan23@proton.me> | 2023-12-02 05:10:33 +0300 |
---|---|---|
committer | hozan23 <hozan23@proton.me> | 2023-12-02 05:10:33 +0300 |
commit | 8cdc44b24724acf7dd458e59f5ceed4af04574be (patch) | |
tree | 1e0aad5a905508c54f7d9be4d4b800b7e8f7d532 /p2p/src/discovery/refresh.rs | |
parent | 5111a3d5749625c3d8e26a24a5a32c4da58f18d3 (diff) |
Ensure uniform usage of the name `karyon` across all files
Diffstat (limited to 'p2p/src/discovery/refresh.rs')
-rw-r--r-- | p2p/src/discovery/refresh.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/p2p/src/discovery/refresh.rs b/p2p/src/discovery/refresh.rs index 180ac27..ed111fb 100644 --- a/p2p/src/discovery/refresh.rs +++ b/p2p/src/discovery/refresh.rs @@ -9,13 +9,13 @@ use smol::{ Timer, }; -use karyons_core::{ +use karyon_core::{ async_util::{timeout, Backoff, TaskGroup, TaskResult}, util::{decode, encode}, GlobalExecutor, }; -use karyons_net::{dial_udp, listen_udp, Addr, Connection, Endpoint, NetError, Port, UdpConn}; +use karyon_net::{dial_udp, listen_udp, Addr, Connection, Endpoint, NetError, Port, UdpConn}; /// Maximum failures for an entry before removing it from the routing table. pub const MAX_FAILURES: u32 = 3; @@ -200,7 +200,7 @@ impl RefreshService { while retry < self.config.refresh_connect_retries { match self.send_ping_msg(&conn).await { Ok(()) => return Ok(()), - Err(Error::KaryonsNet(NetError::Timeout)) => { + Err(Error::KaryonNet(NetError::Timeout)) => { retry += 1; backoff.sleep().await; } |