From 66975ae3f2a7b90338fd5c4ce661d4874eb192ec Mon Sep 17 00:00:00 2001 From: mhchia Date: Tue, 4 Feb 2020 17:43:39 +0800 Subject: [PATCH] Pubsub: change `run_task` to `run_daemon_task` --- libp2p/pubsub/gossipsub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p/pubsub/gossipsub.py b/libp2p/pubsub/gossipsub.py index 25c53d28..4d25c254 100644 --- a/libp2p/pubsub/gossipsub.py +++ b/libp2p/pubsub/gossipsub.py @@ -88,7 +88,7 @@ class GossipSub(IPubsubRouter, Service): async def run(self) -> None: if self.pubsub is None: raise NoPubsubAttached - self.manager.run_task(self.heartbeat) + self.manager.run_daemon_task(self.heartbeat) await self.manager.wait_finished() # Interface functions