mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
fix: remove unused upgrade_listener function (Issue 2 from #726)
This commit is contained in:
@ -1,9 +1,7 @@
|
|||||||
from libp2p.abc import (
|
from libp2p.abc import (
|
||||||
IListener,
|
|
||||||
IMuxedConn,
|
IMuxedConn,
|
||||||
IRawConnection,
|
IRawConnection,
|
||||||
ISecureConn,
|
ISecureConn,
|
||||||
ITransport,
|
|
||||||
)
|
)
|
||||||
from libp2p.custom_types import (
|
from libp2p.custom_types import (
|
||||||
TMuxerOptions,
|
TMuxerOptions,
|
||||||
@ -43,10 +41,6 @@ class TransportUpgrader:
|
|||||||
self.security_multistream = SecurityMultistream(secure_transports_by_protocol)
|
self.security_multistream = SecurityMultistream(secure_transports_by_protocol)
|
||||||
self.muxer_multistream = MuxerMultistream(muxer_transports_by_protocol)
|
self.muxer_multistream = MuxerMultistream(muxer_transports_by_protocol)
|
||||||
|
|
||||||
def upgrade_listener(self, transport: ITransport, listeners: IListener) -> None:
|
|
||||||
"""Upgrade multiaddr listeners to libp2p-transport listeners."""
|
|
||||||
# TODO: Figure out what to do with this function.
|
|
||||||
|
|
||||||
async def upgrade_security(
|
async def upgrade_security(
|
||||||
self,
|
self,
|
||||||
raw_conn: IRawConnection,
|
raw_conn: IRawConnection,
|
||||||
|
|||||||
Reference in New Issue
Block a user