move tasks to network manager

This commit is contained in:
John Smith
2022-07-22 13:05:28 -04:00
parent 47fc9ec75c
commit 6f6ec298cf
10 changed files with 761 additions and 687 deletions

View File

@@ -248,6 +248,13 @@ impl AttachmentManager {
break;
}
// see if we need to restart the network
if netman.needs_restart() {
info!("Restarting network");
restart = true;
break;
}
self.update_attachment().await;
// sleep should be at the end in case maintain_peers changes state