Fixed SQL insert shtorm and connected devices migration

This commit is contained in:
Aleksandr Bogomiakov committed 2026-10-06 18:09:47 +01:00
1 parent 5069123541
commit 8c0ea444f0
6 files changed
+172 -64

No files matched your search

+6 -1
View File
@@ -399,7 +399,12 @@ impl Federation {
// when a federation peer is slow or offline.
let federation = std::sync::Arc::clone(self);
tokio::spawn(async move {
if let Err(err) = federation.sync_now().await {
let result = async {
let service = federation.service().await?;
federation.sync_once(&service).await.map(|_| ())
}
.await;
if let Err(err) = result {
tracing::warn!(track_id, "post-import federation publish failed: {err:#}");
}
});