Skip to content
This repository has been archived by the owner on Jan 1, 2019. It is now read-only.

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Lispython committed Jan 21, 2013
1 parent 3ae4aa6 commit 4af6e36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/redis_client2.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ def measure_time(title, logger=None, **debug_params):


with measure_time("Test stats"):
for x in xrange(1000):

for x in xrange(30000):
stats_client.incr(choice([u"Test project metric"]),
timestamp=datetime.datetime(choice([2012]), randint(1, 12), randint(1, 27)),
value=1,
filters={choice(["views", "orders", "filter1", "filter2"]): choice(["hello", "world", "registered"]),
"clicks": "anonymouse"}
)
print(x)

print("finish")
4 changes: 2 additions & 2 deletions gottwall/backends/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,14 @@ def load_buckets(self, project):

while i > 0:
raw_data = (yield gen.Task(client.spop, key))
print(raw_data)

if not raw_data:
break

try:
self.process_data(project, self.parse_data(raw_data))
except Exception, e:
logger.warning(e)
print(e)

i -= 1

0 comments on commit 4af6e36

Please sign in to comment.