Don't call config() in the global space

Calling `config` in the global space breaks the config generator.
There's another case like this in the wsgi transport but it's not loaded
as part of the config generation step.

Change-Id: If4bccf54e89994c665bb1d5f4f0766e7b7f16c6d
This commit is contained in:
Flavio Percoco
2014-08-22 15:31:20 +02:00
parent 8d889fc4e7
commit a10e42c7e8
2 changed files with 2 additions and 1 deletions

View File

@@ -23,6 +23,8 @@ from zaqar.bench import producer
def main():
conf(project='zaqar', prog='zaqar-benchmark')
downstream_queue = mp.Queue()
procs = [mp.Process(target=worker.run, args=(downstream_queue,))
for worker in [producer, consumer]]

View File

@@ -33,4 +33,3 @@ _CLI_OPTIONS = (
cfg.StrOpt('messages_path', short='m')
)
conf.register_cli_opts(_CLI_OPTIONS)
conf(project='zaqar', prog='zaqar-benchmark')