mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-29 01:31:33 +00:00
refactor(gossipsub): revise symbol naming to follow conventions (#3303)
Changes regarding the #2217
This commit is contained in:
@ -36,9 +36,9 @@ impl Metrics {
|
||||
}
|
||||
}
|
||||
|
||||
impl super::Recorder<libp2p_gossipsub::GossipsubEvent> for Metrics {
|
||||
fn record(&self, event: &libp2p_gossipsub::GossipsubEvent) {
|
||||
if let libp2p_gossipsub::GossipsubEvent::Message { .. } = event {
|
||||
impl super::Recorder<libp2p_gossipsub::Event> for Metrics {
|
||||
fn record(&self, event: &libp2p_gossipsub::Event) {
|
||||
if let libp2p_gossipsub::Event::Message { .. } = event {
|
||||
self.messages.inc();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user