forked from Furumi/furumi-web
Fixed SQL insert shtorm and connected devices migration
This commit is contained in:
1 parent
5069123541
commit
8c0ea444f0
6 files changed
+172
-64
No files matched your search
@@ -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:#}");
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user