Pubsub: change run_task to run_daemon_task

This commit is contained in:
mhchia
2020-02-04 17:43:39 +08:00
parent 7ae9de9002
commit 66975ae3f2

View File

@ -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