Skip to content
Browse files

s/_flush_queue/flush_queue/

  • Loading branch information...
1 parent fccc965 commit 0434750c3151e67a1f77367b846761a06f517b25 @gyst gyst committed
Showing with 3 additions and 3 deletions.
  1. +2 −2 plonesocial/microblog/statuscontainer.py
  2. +1 −1 plonesocial/microblog/tests/test_permissions.py
View
4 plonesocial/microblog/statuscontainer.py
@@ -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:
View
2 plonesocial/microblog/tests/test_permissions.py
@@ -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

0 comments on commit 0434750

Please sign in to comment.
Something went wrong with that request. Please try again.