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