mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 13:57:58 +00:00
core: grandpa: collect garbage for topic (#1780)
* core: grandpa: collect garbage for topic * core: grandpa: use collect_garbage_for_topic in tests
This commit is contained in:
@@ -372,8 +372,8 @@ impl<V: 'static + Verifier<Block>, D> Peer<V, D> {
|
||||
.send(ProtocolMsg::GossipConsensusMessage(topic, data, broadcast));
|
||||
}
|
||||
|
||||
pub fn consensus_gossip_collect_garbage_for(&self, topic: <Block as BlockT>::Hash) {
|
||||
self.with_gossip(move |gossip, _| gossip.collect_garbage(|t| t == &topic))
|
||||
pub fn consensus_gossip_collect_garbage_for_topic(&self, topic: <Block as BlockT>::Hash) {
|
||||
self.with_gossip(move |gossip, _| gossip.collect_garbage_for_topic(topic))
|
||||
}
|
||||
|
||||
/// access the underlying consensus gossip handler
|
||||
|
||||
Reference in New Issue
Block a user