mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
PROTO: hardcode version and interval for prototype analytics
This commit is contained in:
parent
77e718214f
commit
b423ef72be
1 changed files with 3 additions and 3 deletions
|
@ -271,8 +271,8 @@ impl Segment {
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn run(mut self, meilisearch: MeiliSearch) {
|
async fn run(mut self, meilisearch: MeiliSearch) {
|
||||||
const INTERVAL: Duration = Duration::from_secs(60 * 60); // one hour
|
const INTERVAL: Duration = Duration::from_secs(60); // one minute
|
||||||
// The first batch must be sent after one hour.
|
// The first batch must be sent after one minute.
|
||||||
let mut interval =
|
let mut interval =
|
||||||
tokio::time::interval_at(tokio::time::Instant::now() + INTERVAL, INTERVAL);
|
tokio::time::interval_at(tokio::time::Instant::now() + INTERVAL, INTERVAL);
|
||||||
|
|
||||||
|
@ -302,7 +302,7 @@ impl Segment {
|
||||||
.push(Identify {
|
.push(Identify {
|
||||||
context: Some(json!({
|
context: Some(json!({
|
||||||
"app": {
|
"app": {
|
||||||
"version": env!("CARGO_PKG_VERSION").to_string(),
|
"version": "prototype-pagination-2".to_string(),
|
||||||
},
|
},
|
||||||
})),
|
})),
|
||||||
user: self.user.clone(),
|
user: self.user.clone(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue