Skip to content

Commit

Permalink
s/_flush_queue/flush_queue/
Browse files Browse the repository at this point in the history
  • Loading branch information
gyst committed Oct 1, 2012
1 parent fccc965 commit 0434750
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plonesocial/microblog/statuscontainer.py
Expand Up @@ -294,10 +294,10 @@ def _scheduled_autoflush(self):
def _autoflush(self):
#logger.info("autoflush")
if int(time.time() * 1000) - self._mtime > MAX_QUEUE_AGE:
return self._flush_queue() # 1 on write, 0 on noop
return self.flush_queue() # 1 on write, 0 on noop
return 0 # no write

def _flush_queue(self):
def flush_queue(self):
#logger.info("flush_queue")

with LOCK:
Expand Down
2 changes: 1 addition & 1 deletion plonesocial/microblog/tests/test_permissions.py
Expand Up @@ -50,7 +50,7 @@ def test_add_read_member(self):
sa = StatusUpdate('test a', 'arnold')
container = self.mb_tool
container.add(sa)
container._flush_queue()
container.flush_queue()
values = [x for x in container.values()]
self.assertEqual([sa], values)
# dangling queue thread
Expand Down

0 comments on commit 0434750

Please sign in to comment.