swarm/src/protocols_handler: Make ProtocolsHandlerEvent
depend on `ProtocolsHandler only
#2389
Labels
difficulty:moderate
getting-started
Issues that can be tackled if you don't know the internals of libp2p very well
help wanted
Today
ProtocolsHandlerEvent
depends on 4 trait parameters.rust-libp2p/swarm/src/protocols_handler.rs
Lines 311 to 324 in b6c82a4
I think it is worth exploring simplifications, e.g. having
ProtocolsHandlerEvent
depend on aProtocolsHandler
implementation only:Note that this might clash with the various
ProtocolsHandlerEvent::map_xxx
methods, as they assume being able to map individual trait parameters.Proposed by @elenaf9 in #2059 (comment).
The text was updated successfully, but these errors were encountered: