fix worker class detection
This commit is contained in:
parent
9c545d1ace
commit
7f00c93001
@ -9,7 +9,7 @@ import capport.config
|
||||
|
||||
def run(config: hypercorn.config.Config) -> None:
|
||||
sockets = config.create_sockets()
|
||||
if type(config.worker_class) != 'trio':
|
||||
if config.worker_class != 'trio':
|
||||
raise Exception('Invalid worker class received from constructor')
|
||||
|
||||
hypercorn.trio.run.trio_worker(config=config, sockets=sockets)
|
||||
|
Loading…
Reference in New Issue
Block a user