summaryrefslogtreecommitdiff
path: root/feeds.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2014-10-26 22:06:08 -0500
committerDan McGee <dan@archlinux.org>2014-10-26 22:06:08 -0500
commit9c701ebba1f2ef403aab95354a8ae4efdb7df74c (patch)
treea507e957c81b94c4e4cd6aad71f6505626adeb3a /feeds.py
parent8e990ca945f4fc5b27c0a81a484a107c83aa69d3 (diff)
Double batch size in BatchWritesWrapper
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'feeds.py')
-rw-r--r--feeds.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/feeds.py b/feeds.py
index 24611e7e..7247e95c 100644
--- a/feeds.py
+++ b/feeds.py
@@ -14,15 +14,14 @@ from releng.models import Release
class BatchWritesWrapper(object):
- def __init__(self, outfile, chunks=20):
+ def __init__(self, outfile):
self.outfile = outfile
- self.chunks = chunks
self.buf = []
def write(self, s):
buf = self.buf
buf.append(s)
- if len(buf) >= self.chunks:
+ if len(buf) >= 40:
self.outfile.write(''.join(buf))
self.buf = []