Use cls over the name of the factory

This commit is contained in:
mhchia 2019-12-26 20:44:10 +08:00
parent 3c98b1973d
commit 68c84b273d
No known key found for this signature in database
GPG Key ID: 389EFBEA1362589A

View File

@ -238,7 +238,7 @@ class PubsubFactory(factory.Factory):
async def create_and_start(
cls, host: IHost, router: IPubsubRouter, cache_size: int, strict_signing: bool
) -> AsyncIterator[Pubsub]:
pubsub = PubsubFactory(
pubsub = cls(
host=host,
router=router,
cache_size=cache_size,