Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use fn pointer type
  • Loading branch information
montekki committed Jun 17, 2020
commit b77a90cd5d85491602611f0e689fa93f39ef6f4e
2 changes: 1 addition & 1 deletion node/messages/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ pub enum NetworkBridgeEvent {
/// Messages received by the network bridge subsystem.
pub enum NetworkBridgeSubsystemMessage {
/// Register an event producer on startup.
RegisterEventProducer(ProtocolId, Box<dyn Fn(NetworkBridgeEvent) -> AllMessages>),
RegisterEventProducer(ProtocolId, fn(NetworkBridgeEvent) -> AllMessages),

/// Report a peer for their actions.
ReportPeer(PeerId, ReputationChange),
Expand Down