From a2a6d529ea9fdfaa305a0af7f539a347b9a22945 Mon Sep 17 00:00:00 2001 From: Xiaodong Date: Thu, 19 Sep 2019 11:13:02 +0800 Subject: [PATCH] Fix docstring typos in /elasticsearch/transport.py --- elasticsearch/transport.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/elasticsearch/transport.py b/elasticsearch/transport.py index f8971b16e..bfd2f866b 100644 --- a/elasticsearch/transport.py +++ b/elasticsearch/transport.py @@ -67,10 +67,10 @@ def __init__( :arg connection_class: subclass of :class:`~elasticsearch.Connection` to use :arg connection_pool_class: subclass of :class:`~elasticsearch.ConnectionPool` to use :arg host_info_callback: callback responsible for taking the node information from - `/_cluser/nodes`, along with already extracted information, and + `/_cluster/nodes`, along with already extracted information, and producing a list of arguments (same as `hosts` parameter) :arg sniff_on_start: flag indicating whether to obtain a list of nodes - from the cluser at startup time + from the cluster at startup time :arg sniffer_timeout: number of seconds between automatic sniffs :arg sniff_on_connection_fail: flag controlling if connection failure triggers a sniff :arg sniff_timeout: timeout used for the sniff request - it should be a @@ -187,7 +187,7 @@ def _create_connection(host): def get_connection(self): """ - Retreive a :class:`~elasticsearch.Connection` instance from the + Retrieve a :class:`~elasticsearch.Connection` instance from the :class:`~elasticsearch.ConnectionPool` instance. """ if self.sniffer_timeout: @@ -197,7 +197,7 @@ def get_connection(self): def _get_sniff_data(self, initial=False): """ - Perform the request to get sniffins information. Returns a list of + Perform the request to get sniffing information. Returns a list of dictionaries (one per node) containing all the information from the cluster. @@ -294,7 +294,7 @@ def perform_request(self, method, url, headers=None, params=None, body=None): If an exception was raised, mark the connection as failed and retry (up to `max_retries` times). - If the operation was succesful and the connection used was previously + If the operation was successful and the connection used was previously marked as dead, mark it as live, resetting it's failure count. :arg method: HTTP method to use