mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Merge branch 'master' into events-api-first-cut
This commit is contained in:
commit
3758d458ce
@ -22,7 +22,7 @@ class StandaloneApplication(gunicorn.app.base.BaseApplication):
|
||||
- http://docs.gunicorn.org/en/latest/custom.html
|
||||
"""
|
||||
|
||||
def __init__(self, app, options=None):
|
||||
def __init__(self, app, *, options=None):
|
||||
'''Initialize a new standalone application.
|
||||
|
||||
Args:
|
||||
@ -32,7 +32,7 @@ class StandaloneApplication(gunicorn.app.base.BaseApplication):
|
||||
'''
|
||||
self.options = options or {}
|
||||
self.application = app
|
||||
super(StandaloneApplication, self).__init__()
|
||||
super().__init__()
|
||||
|
||||
def load_config(self):
|
||||
config = dict((key, value) for key, value in self.options.items()
|
||||
@ -91,5 +91,5 @@ def create_server(settings):
|
||||
settings['logger_class'] = 'bigchaindb.log.loggers.HttpServerLogger'
|
||||
app = create_app(debug=settings.get('debug', False),
|
||||
threads=settings['threads'])
|
||||
standalone = StandaloneApplication(app, settings)
|
||||
standalone = StandaloneApplication(app, options=settings)
|
||||
return standalone
|
||||
|
Loading…
x
Reference in New Issue
Block a user