mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
Add test and fix ci
This commit is contained in:
@ -508,7 +508,9 @@ class DCUtRProtocol(Service):
|
||||
|
||||
# Handle both single connection and list of connections
|
||||
connections: list[INetConn] = (
|
||||
[conn_or_conns] if not isinstance(conn_or_conns, list) else conn_or_conns
|
||||
list(conn_or_conns)
|
||||
if not isinstance(conn_or_conns, list)
|
||||
else conn_or_conns
|
||||
)
|
||||
|
||||
# Check if any connection is direct (not relayed)
|
||||
|
||||
Reference in New Issue
Block a user