mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 08:00:54 +00:00
Fix documentation build issues and add _build/ to .gitignore
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@ -178,3 +178,6 @@ env.bak/
|
|||||||
#lockfiles
|
#lockfiles
|
||||||
uv.lock
|
uv.lock
|
||||||
poetry.lock
|
poetry.lock
|
||||||
|
|
||||||
|
# Sphinx documentation build
|
||||||
|
_build/
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
Multiple Connections Per Peer
|
Multiple Connections Per Peer
|
||||||
============================
|
=============================
|
||||||
|
|
||||||
This example demonstrates how to use the multiple connections per peer feature in py-libp2p.
|
This example demonstrates how to use the multiple connections per peer feature in py-libp2p.
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ The feature is configured through the `ConnectionConfig` class:
|
|||||||
)
|
)
|
||||||
|
|
||||||
Load Balancing Strategies
|
Load Balancing Strategies
|
||||||
------------------------
|
-------------------------
|
||||||
|
|
||||||
Two load balancing strategies are available:
|
Two load balancing strategies are available:
|
||||||
|
|
||||||
@ -74,7 +74,7 @@ The new API provides direct access to multiple connections:
|
|||||||
single_conn = swarm.get_connection(peer_id)
|
single_conn = swarm.get_connection(peer_id)
|
||||||
|
|
||||||
Backward Compatibility
|
Backward Compatibility
|
||||||
---------------------
|
----------------------
|
||||||
|
|
||||||
Existing code continues to work through backward compatibility features:
|
Existing code continues to work through backward compatibility features:
|
||||||
|
|
||||||
@ -89,10 +89,10 @@ Existing code continues to work through backward compatibility features:
|
|||||||
Example
|
Example
|
||||||
-------
|
-------
|
||||||
|
|
||||||
See :doc:`examples/doc-examples/multiple_connections_example.py` for a complete working example.
|
A complete working example is available in the `examples/doc-examples/multiple_connections_example.py` file.
|
||||||
|
|
||||||
Production Configuration
|
Production Configuration
|
||||||
-----------------------
|
-------------------------
|
||||||
|
|
||||||
For production use, consider these settings:
|
For production use, consider these settings:
|
||||||
|
|
||||||
@ -121,7 +121,7 @@ For production use, consider these settings:
|
|||||||
)
|
)
|
||||||
|
|
||||||
Architecture
|
Architecture
|
||||||
-----------
|
------------
|
||||||
|
|
||||||
The implementation follows the same architectural patterns as the Go and JavaScript reference implementations:
|
The implementation follows the same architectural patterns as the Go and JavaScript reference implementations:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user