Update backend/src/node.rs

Co-authored-by: Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com>
This commit is contained in:
Roman Borschel
2020-09-14 17:04:38 +02:00
committed by GitHub
parent d8ae36dc34
commit 5ecd6e2c46
+8 -4
View File
@@ -145,12 +145,16 @@ impl Node {
let mut changed = false;
if let Some(peers) = interval.peers {
self.stats.peers = peers;
changed = true;
if peers != self.stats.peers {
self.stats.peers = peers;
changed = true;
}
}
if let Some(txcount) = interval.txcount {
self.stats.txcount = txcount;
changed = true;
if txcoint != self.stats.txcount {
self.stats.txcount = txcount;
changed = true;
}
}
if changed {