mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-07 13:40:56 +00:00
fix docstrings
This commit is contained in:
@ -58,6 +58,8 @@ class Multiselect(IMultiselectMuxer):
|
|||||||
Negotiate performs protocol selection.
|
Negotiate performs protocol selection.
|
||||||
|
|
||||||
:param stream: stream to negotiate on
|
:param stream: stream to negotiate on
|
||||||
|
:param negotiate_timeout: timeout for negotiation,
|
||||||
|
defaults to DEFAULT_NEGOTIATE_TIMEOUT
|
||||||
:return: selected protocol name, handler function
|
:return: selected protocol name, handler function
|
||||||
:raise MultiselectError: raised when negotiation failed
|
:raise MultiselectError: raised when negotiation failed
|
||||||
"""
|
"""
|
||||||
|
|||||||
@ -63,6 +63,8 @@ class MultiselectClient(IMultiselectClient):
|
|||||||
|
|
||||||
:param protocol: protocol to select
|
:param protocol: protocol to select
|
||||||
:param communicator: communicator to use to communicate with counterparty
|
:param communicator: communicator to use to communicate with counterparty
|
||||||
|
:param negotiate_timeout: timeout for negotiation,
|
||||||
|
defaults to DEFAULT_NEGOTIATE_TIMEOUT
|
||||||
:return: selected protocol
|
:return: selected protocol
|
||||||
:raise MultiselectClientError: raised when protocol negotiation failed
|
:raise MultiselectClientError: raised when protocol negotiation failed
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user