Added version to topology for coconodes

This commit is contained in:
Jedrzej Stuczynski
2020-01-14 10:10:05 +00:00
parent 1d2481e558
commit 04f11ecafa
2 changed files with 3 additions and 0 deletions
@@ -9,6 +9,7 @@ pub struct CocoPresence {
pub host: String,
pub pub_key: String,
pub last_seen: u64,
pub version: String,
}
impl Into<topology::CocoNode> for CocoPresence {
@@ -17,6 +18,7 @@ impl Into<topology::CocoNode> for CocoPresence {
host: self.host,
pub_key: self.pub_key,
last_seen: self.last_seen,
version: self.version,
}
}
}
+1
View File
@@ -74,6 +74,7 @@ pub struct CocoNode {
pub host: String,
pub pub_key: String,
pub last_seen: u64,
pub version: String,
}
#[derive(Debug)]