File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
from libp2p .abc import (
2
- IListener ,
3
2
IMuxedConn ,
4
3
IRawConnection ,
5
4
ISecureConn ,
6
- ITransport ,
7
5
)
8
6
from libp2p .custom_types import (
9
7
TMuxerOptions ,
@@ -43,10 +41,6 @@ def __init__(
43
41
self .security_multistream = SecurityMultistream (secure_transports_by_protocol )
44
42
self .muxer_multistream = MuxerMultistream (muxer_transports_by_protocol )
45
43
46
- def upgrade_listener (self , transport : ITransport , listeners : IListener ) -> None :
47
- """Upgrade multiaddr listeners to libp2p-transport listeners."""
48
- # TODO: Figure out what to do with this function.
49
-
50
44
async def upgrade_security (
51
45
self ,
52
46
raw_conn : IRawConnection ,
Original file line number Diff line number Diff line change
1
+ Remove unused upgrade_listener function from transport upgrader
2
+
3
+ - Remove unused `upgrade_listener ` function from `libp2p/transport/upgrader.py ` (Issue 2 from #726)
4
+ - Clean up unused imports related to the removed function
5
+ - Improve code maintainability by removing dead code
You can’t perform that action at this time.
0 commit comments