Code layout cleanup.

This commit is contained in:
Tommi Virtanen 2011-07-20 10:54:17 -07:00
parent deb8be9957
commit 9ecaf63fbe

View file

@ -119,7 +119,9 @@ def main():
print "Spawning {r} readers and {w} writers...".format(r=options.num_readers, w=options.num_writers) print "Spawning {r} readers and {w} writers...".format(r=options.num_readers, w=options.num_writers)
group = gevent.pool.Group() group = gevent.pool.Group()
for x in xrange(options.num_writers): for x in xrange(options.num_writers):
group.spawn(writer, bucket, group.spawn(
writer,
bucket=bucket,
name=x, name=x,
queue=q, queue=q,
file_size=options.file_size, file_size=options.file_size,
@ -127,7 +129,9 @@ def main():
file_name_seed=r, file_name_seed=r,
) )
for x in xrange(options.num_readers): for x in xrange(options.num_readers):
group.spawn(reader, bucket, group.spawn(
reader,
bucket=bucket,
name=x, name=x,
queue=q, queue=q,
) )