Skip to content

Commit

Permalink
Always create new pipeline object
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjoes committed May 15, 2014
1 parent ff1b2d7 commit df79990
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions toredis/client.py
Expand Up @@ -37,8 +37,6 @@ def __init__(self, io_loop=None):

self._sub_callback = False

self._pipeline = None

def connect(self, host='localhost', port=6379, callback=None):
"""
Connect to redis server
Expand Down Expand Up @@ -257,6 +255,4 @@ def _reset(self):
self._sub_callback = None

def pipeline(self):
if not self._pipeline:
self._pipeline = Pipeline(self)
return self._pipeline
return Pipeline(self)

0 comments on commit df79990

Please sign in to comment.