mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-11 23:51:07 +00:00
Use cls over the name of the factory
This commit is contained in:
@ -238,7 +238,7 @@ class PubsubFactory(factory.Factory):
|
|||||||
async def create_and_start(
|
async def create_and_start(
|
||||||
cls, host: IHost, router: IPubsubRouter, cache_size: int, strict_signing: bool
|
cls, host: IHost, router: IPubsubRouter, cache_size: int, strict_signing: bool
|
||||||
) -> AsyncIterator[Pubsub]:
|
) -> AsyncIterator[Pubsub]:
|
||||||
pubsub = PubsubFactory(
|
pubsub = cls(
|
||||||
host=host,
|
host=host,
|
||||||
router=router,
|
router=router,
|
||||||
cache_size=cache_size,
|
cache_size=cache_size,
|
||||||
|
|||||||
Reference in New Issue
Block a user