diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs index 494342c..3fcd27b 100644 --- a/src/main.rs +++ b/src/main.rs | |||
| @@ -190,13 +190,21 @@ async fn mirror_cycle( | |||
| 190 | "mirroring to missing servers" | 190 | "mirroring to missing servers" |
| 191 | ); | 191 | ); |
| 192 | 192 | ||
| 193 | mirror.mirror_repo_to_servers(db, repo, &missing).await?; | 193 | if let Err(e) = mirror.mirror_repo_to_servers(db, repo, &missing).await { |
| 194 | nostr_mirror.forward_repo_events(db, repo, servers).await?; | 194 | tracing::error!(identifier = %repo.identifier, error = %e, "git mirror failed for repo, continuing"); |
| 195 | } | ||
| 196 | |||
| 197 | if let Err(e) = nostr_mirror.forward_repo_events(db, repo, servers).await { | ||
| 198 | tracing::error!(identifier = %repo.identifier, error = %e, "nostr mirror failed for repo, continuing"); | ||
| 199 | } | ||
| 195 | } | 200 | } |
| 196 | 201 | ||
| 197 | nostr_mirror | 202 | if let Err(e) = nostr_mirror |
| 198 | .sync_all_events(db, &config.npubs, servers) | 203 | .sync_all_events(db, &config.npubs, servers) |
| 199 | .await?; | 204 | .await |
| 205 | { | ||
| 206 | tracing::error!(error = %e, "event sync failed"); | ||
| 207 | } | ||
| 200 | 208 | ||
| 201 | tracing::info!("mirror cycle complete"); | 209 | tracing::info!("mirror cycle complete"); |
| 202 | Ok(()) | 210 | Ok(()) |