fix worker class detection
This commit is contained in:
1 parent
9c545d1ace
commit
7f00c93001
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user