From 68c84b273dd7b992f2a45c918d88e218310ef7a2 Mon Sep 17 00:00:00 2001 From: mhchia Date: Thu, 26 Dec 2019 20:44:10 +0800 Subject: [PATCH] Use `cls` over the name of the factory --- libp2p/tools/factories.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p/tools/factories.py b/libp2p/tools/factories.py index 144c8bc0..ae99f345 100644 --- a/libp2p/tools/factories.py +++ b/libp2p/tools/factories.py @@ -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,