Eliminated connection loops.

Optimized network processes.
Removed some unnecessary logging.
Fixed status bar info inconsistency.
This commit is contained in:
Revertron
2021-03-21 00:19:09 +01:00
parent 4497dc515b
commit dcf5bb72b0
13 changed files with 178 additions and 85 deletions
+3 -3
View File
@@ -59,7 +59,7 @@ impl Bytes {
}
pub fn to_string(&self) -> String {
crate::utils::to_hex(&self.data)
crate::commons::to_hex(&self.data)
}
pub fn get_tail_u64(&self) -> u64 {
@@ -127,14 +127,14 @@ impl Deref for Bytes {
impl fmt::Debug for Bytes {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
fmt.write_str(&crate::utils::to_hex(&self.data))
fmt.write_str(&crate::commons::to_hex(&self.data))
}
}
impl Serialize for Bytes {
fn serialize<S>(&self, serializer: S) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer {
serializer.serialize_str(&crate::utils::to_hex(&self.data))
serializer.serialize_str(&crate::commons::to_hex(&self.data))
}
}