Skip to content
This repository was archived by the owner on Apr 15, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions consul/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class Check(object):
@classmethod
def script(klass, args, interval):
"""
Run the script *args* every *interval* (e.g. "10s") to peform health
Run the script *args* every *interval* (e.g. "10s") to perform health
check
"""
if isinstance(args, six.string_types) \
Expand All @@ -65,11 +65,11 @@ def script(klass, args, interval):
@classmethod
def http(klass, url, interval, timeout=None, deregister=None, header=None):
"""
Peform a HTTP GET against *url* every *interval* (e.g. "10s") to peform
Perform a HTTP GET against *url* every *interval* (e.g. "10s") to perform
health check with an optional *timeout* and optional *deregister* after
which a failing service will be automatically deregistered. Optional
parameter *header* specifies headers sent in HTTP request. *header*
paramater is in form of map of lists of strings,
parameter is in form of map of lists of strings,
e.g. {"x-foo": ["bar", "baz"]}.
"""
ret = {'http': url, 'interval': interval}
Expand Down Expand Up @@ -572,7 +572,7 @@ def put(

The optional *cas* parameter is used to turn the PUT into a
Check-And-Set operation. This is very useful as it allows clients
to build more complex syncronization primitives on top. If the
to build more complex synchronization primitives on top. If the
index is 0, then Consul will only put the key if it does not
already exist. If the index is non-zero, then the key is only set
if the index matches the ModifyIndex of that key.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_twisted.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

def sleep(seconds):
"""
An asynchronous sleep function using twsited. Source:
An asynchronous sleep function using twisted. Source:
http://twistedmatrix.com/pipermail/twisted-python/2009-October/020788.html

:type seconds: float
Expand Down