mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
Remove unnecessary min_id_length option from amplitude requests
This commit is contained in:
parent
06813be5c8
commit
f3d83631ef
1 changed files with 1 additions and 11 deletions
|
@ -53,12 +53,6 @@ lazy_static! {
|
||||||
struct AmplitudeEventBatch {
|
struct AmplitudeEventBatch {
|
||||||
api_key: &'static str,
|
api_key: &'static str,
|
||||||
events: Vec<AmplitudeEvent>,
|
events: Vec<AmplitudeEvent>,
|
||||||
options: AmplitudeEventBatchOptions,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Serialize)]
|
|
||||||
struct AmplitudeEventBatchOptions {
|
|
||||||
min_id_length: usize,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize)]
|
#[derive(Serialize)]
|
||||||
|
@ -273,11 +267,7 @@ impl Telemetry {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let batch = AmplitudeEventBatch {
|
let batch = AmplitudeEventBatch { api_key, events };
|
||||||
api_key,
|
|
||||||
events,
|
|
||||||
options: AmplitudeEventBatchOptions { min_id_length: 1 },
|
|
||||||
};
|
|
||||||
json_bytes.clear();
|
json_bytes.clear();
|
||||||
serde_json::to_writer(&mut json_bytes, &batch)?;
|
serde_json::to_writer(&mut json_bytes, &batch)?;
|
||||||
let request =
|
let request =
|
||||||
|
|
Loading…
Reference in a new issue