Disable instance handshake in dev builds (#3485)
It feels like every week or two someone hits this and is confused about why the app isn't launch, been meaning to disable this in dev builds for a while. This does mean that it'll be possible to hit the local DB lock panic in a dev build if you run it multiple times but that is so rare that it seems preferable Release Notes: - N/A
This commit is contained in:
@@ -350,7 +350,6 @@ impl Telemetry {
|
|||||||
milliseconds_since_first_event: self.milliseconds_since_first_event(),
|
milliseconds_since_first_event: self.milliseconds_since_first_event(),
|
||||||
};
|
};
|
||||||
|
|
||||||
dbg!(telemetry_settings);
|
|
||||||
self.report_clickhouse_event(event, telemetry_settings, true)
|
self.report_clickhouse_event(event, telemetry_settings, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ pub enum IsOnlyInstance {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn ensure_only_instance() -> IsOnlyInstance {
|
pub fn ensure_only_instance() -> IsOnlyInstance {
|
||||||
if *db::ZED_STATELESS {
|
if *db::ZED_STATELESS || *util::channel::RELEASE_CHANNEL == ReleaseChannel::Dev {
|
||||||
return IsOnlyInstance::Yes;
|
return IsOnlyInstance::Yes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ pub enum IsOnlyInstance {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn ensure_only_instance() -> IsOnlyInstance {
|
pub fn ensure_only_instance() -> IsOnlyInstance {
|
||||||
if *db::ZED_STATELESS {
|
if *db::ZED_STATELESS || *util::channel::RELEASE_CHANNEL == ReleaseChannel::Dev {
|
||||||
return IsOnlyInstance::Yes;
|
return IsOnlyInstance::Yes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user