mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-19 22:51:06 +00:00
Broadcast node count on disconnect
This commit is contained in:
@@ -56,6 +56,8 @@ export default class Aggregator {
|
|||||||
|
|
||||||
chain.events.on('disconnect', (count: number) => {
|
chain.events.on('disconnect', (count: number) => {
|
||||||
if (count !== 0) {
|
if (count !== 0) {
|
||||||
|
this.feeds.broadcast(Feed.addedChain(chain));
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user