mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-30 00:34:26 +01:00
send the analytics only once every hours
This commit is contained in:
parent
01737ef847
commit
9a62ac0c94
@ -224,7 +224,7 @@ mod segment {
|
|||||||
}
|
}
|
||||||
let _ = batcher.flush().await;
|
let _ = batcher.flush().await;
|
||||||
}
|
}
|
||||||
tokio::time::sleep(Duration::from_secs(60 * 2)).await; // 2 minutes
|
tokio::time::sleep(Duration::from_secs(60 * 60)).await; // one hour
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user