def start_network(self, network: 'Network'):
    assert network
    super().start_network(network)
    asyncio.run_coroutine_threadsafe(self.taskgroup.spawn(self.maintain_db()), self.network.asyncio_loop)
def start_network(self, network: 'Network'):
    assert network
    super().start_network(network)
    asyncio.run_coroutine_threadsafe(self.taskgroup.spawn(self.maintain_db()), self.network.asyncio_loop)