Skip to content
This repository has been archived by the owner on Sep 24, 2022. It is now read-only.

Commit

Permalink
Fix spelling error (renames an instance attr).
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Ward committed Nov 2, 2015
1 parent d31975a commit 753fefe
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions momoko/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class Pool(object):
connect to database during :py:meth:`momoko.Pool.connect`.
:param int reconnect_interval:
If database server becomes unavailble, the pool will try to reestablish
If database server becomes unavailable, the pool will try to reestablish
the connection. The attempt frequency is ``reconnect_interval``
milliseconds.
Expand Down Expand Up @@ -244,7 +244,7 @@ def __init__(self,
self.conns = ConnectionContainer()

self._last_connect_time = 0
self._no_conn_availble_error = self.DatabaseNotAvailable("No database connection available")
self._no_conn_available_error = self.DatabaseNotAvailable("No database connection available")
self.shrink_period = shrink_period
self.shrink_delay = shrink_delay
self.auto_shrink = auto_shrink
Expand Down Expand Up @@ -307,7 +307,7 @@ def getconn(self, ping=True):

def on_reanimate_done(fut):
if self.conns.all_dead:
future.set_exception(self._no_conn_availble_error)
future.set_exception(self._no_conn_available_error)
return
f = self.conns.acquire()
assert isinstance(f, Future)
Expand All @@ -333,7 +333,7 @@ def putconn(self, connection):
self.conns.release(connection)

if self.conns.all_dead:
self.conns.abort_waiting_queue(self._no_conn_availble_error)
self.conns.abort_waiting_queue(self._no_conn_available_error)

@contextmanager
def manage(self, connection):
Expand Down Expand Up @@ -495,7 +495,7 @@ def _retry(self, retry, what, conn, keep, future):
self.ioloop.add_future(conn.connect(), what)
return
else:
future.set_exception(self._no_conn_availble_error)
future.set_exception(self._no_conn_available_error)
else:
future.set_exc_info(sys.exc_info())
if not keep:
Expand Down Expand Up @@ -580,7 +580,7 @@ def on_ping_done(ping_fut):
ping_fut.result()
except psycopg2.Error as error:
if conn.closed:
ping_future.set_exception(self._no_conn_availble_error)
ping_future.set_exception(self._no_conn_available_error)
else:
ping_future.set_exc_info(sys.exc_info())
self.putconn(conn)
Expand Down

0 comments on commit 753fefe

Please sign in to comment.