We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70ca26d commit 1d92e04Copy full SHA for 1d92e04
src/handlers/http/modal/ingest_server.rs
@@ -31,6 +31,7 @@ use tokio::sync::oneshot;
31
use tokio::sync::OnceCell;
32
33
use crate::handlers::http::modal::NodeType;
34
+use crate::sync::sync_start;
35
use crate::{
36
analytics,
37
handlers::{
@@ -114,6 +115,13 @@ impl ParseableServer for IngestServer {
114
115
116
migration::run_migration(&PARSEABLE).await?;
117
118
+ // local sync on init
119
+ tokio::spawn(async {
120
+ if let Err(e) = sync_start().await {
121
+ tracing::warn!("local sync on server start failed: {e}");
122
+ }
123
+ });
124
+
125
// Run sync on a background thread
126
let (cancel_tx, cancel_rx) = oneshot::channel();
127
thread::spawn(|| sync::handler(cancel_rx));
0 commit comments