Skip to content

Commit

Permalink
Merge pull request #1018 from XD-DENG/patch-1
Browse files Browse the repository at this point in the history
Fix docstring typos in /elasticsearch/transport.py
  • Loading branch information
philkra authored Sep 19, 2019
2 parents edb4de7 + a2a6d52 commit dd206ad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions elasticsearch/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dd206ad

Please sign in to comment.