less secret (#4221)
- Remove ZED_SECRET_CLIENT_TOKEN - Remove ZED_CLIENT_SECRET_TOKEN Neither of these were ever actually a secret. Release Notes: - N/A
This commit is contained in:
commit
3d5da2f4d9
7 changed files with 70 additions and 84 deletions
|
@ -68,7 +68,6 @@ lazy_static! {
|
|||
std::env::var("ZED_ALWAYS_ACTIVE").map_or(false, |e| e.len() > 0);
|
||||
}
|
||||
|
||||
pub const ZED_SECRET_CLIENT_TOKEN: &str = "618033988749894";
|
||||
pub const INITIAL_RECONNECTION_DELAY: Duration = Duration::from_millis(100);
|
||||
pub const CONNECTION_TIMEOUT: Duration = Duration::from_secs(5);
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
mod event_coalescer;
|
||||
|
||||
use crate::{TelemetrySettings, ZED_SECRET_CLIENT_TOKEN, ZED_SERVER_URL};
|
||||
use crate::{TelemetrySettings, ZED_SERVER_URL};
|
||||
use chrono::{DateTime, Utc};
|
||||
use futures::Future;
|
||||
use gpui::{AppContext, AppMetadata, BackgroundExecutor, Task};
|
||||
|
@ -51,7 +51,6 @@ lazy_static! {
|
|||
|
||||
#[derive(Serialize, Debug)]
|
||||
struct EventRequestBody {
|
||||
token: &'static str,
|
||||
installation_id: Option<Arc<str>>,
|
||||
session_id: Option<Arc<str>>,
|
||||
is_staff: Option<bool>,
|
||||
|
@ -527,7 +526,6 @@ impl Telemetry {
|
|||
{
|
||||
let state = this.state.lock();
|
||||
let request_body = EventRequestBody {
|
||||
token: ZED_SECRET_CLIENT_TOKEN,
|
||||
installation_id: state.installation_id.clone(),
|
||||
session_id: state.session_id.clone(),
|
||||
is_staff: state.is_staff.clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue