mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-13 17:21:01 +00:00
Handle too many validators properly (#151)
* Revert debug flag * Remove dead code * Disallow subscribing if too many validators
This commit is contained in:
committed by
Maciej Hirsz
parent
7add77137a
commit
ce9538485a
@@ -47,23 +47,6 @@ export default class Aggregator {
|
||||
}
|
||||
});
|
||||
|
||||
feed.events.on('subscribe-consensus-info', (label: Types.ChainLabel) => {
|
||||
const chain = this.chains.get(label);
|
||||
|
||||
if (chain) {
|
||||
feed.sendMessage(Feed.subscribedTo(label));
|
||||
chain.addFeed(feed);
|
||||
}
|
||||
});
|
||||
|
||||
feed.events.on('unsubscribe-consensus-info', (label: Types.ChainLabel) => {
|
||||
const chain = this.chains.get(label);
|
||||
|
||||
if (chain) {
|
||||
chain.removeFeed(feed);
|
||||
feed.sendMessage(Feed.unsubscribedFrom(label));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public getExistingChain(label: Types.ChainLabel) : Maybe<Chain> {
|
||||
|
||||
Reference in New Issue
Block a user