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

Commit

Permalink
Merge pull request #111 from jbowes/remove-duplicate-assert
Browse files Browse the repository at this point in the history
Remove duplicate assertion on release
  • Loading branch information
haizaar committed Jul 24, 2015
2 parents 7ea8f72 + 64e75fa commit 99f69b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions momoko/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,15 +312,14 @@ def on_reanimate_done(fut):

def putconn(self, connection):
"""
Retrun busy connection back to the pool.
Return busy connection back to the pool.
**NOTE:** This is a synchronous method.
:param Connection connection:
Connection object previously returned by :py:meth:`momoko.Pool.getconn`.
"""

assert connection in self.conns.busy
self.conns.release(connection)

if self.conns.all_dead:
Expand Down

0 comments on commit 99f69b9

Please sign in to comment.