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:
@@ -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]]
|
||||
|
@@ -33,4 +33,3 @@ _CLI_OPTIONS = (
|
||||
cfg.StrOpt('messages_path', short='m')
|
||||
)
|
||||
conf.register_cli_opts(_CLI_OPTIONS)
|
||||
conf(project='zaqar', prog='zaqar-benchmark')
|
||||
|
Reference in New Issue
Block a user