.. while documenting allow_non_master.
Signed-off-by: Petr Pudlak <[email protected]>
---
lib/rpc/transport.py | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/lib/rpc/transport.py b/lib/rpc/transport.py
index 0a70b8e..e822bb3 100644
--- a/lib/rpc/transport.py
+++ b/lib/rpc/transport.py
@@ -67,10 +67,6 @@ class Transport:
def __init__(self, address, timeouts=None, allow_non_master=None):
"""Constructor for the Client class.
- Arguments:
- - address: a valid address the the used transport class
- - timeout: a list of timeouts, to be used on connect and read/write
-
There are two timeouts used since we might want to wait for a long
time for a response, but the connect timeout should be lower.
@@ -81,6 +77,13 @@ class Transport:
than timeout value passed (we make a hard limit at twice the read
timeout).
+ @type address: socket address
+ @param address: address the transport connects to
+ @type timeouts: list of ints
+ @param timeouts: timeouts to be used on connect and read/write
+ @type allow_non_master: bool
+ @param allow_non_master: skip checks for the master node on errors
+
"""
self.address = address
if timeouts is None:
--
2.4.3.573.g4eafbef