Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Start telemetry earlier and add a timeout #55

Merged
merged 6 commits into from
Aug 26, 2022

Conversation

Hoverbear
Copy link
Contributor

(Based off #52 )

@Hoverbear Hoverbear self-assigned this Aug 24, 2022
@linear
Copy link

linear bot commented Aug 24, 2022

DS-263 Telemetry: background it and add a timeout

Let's try to avoid blocking exiting the program on telemetry. If we are blocking on telemetry, let's keep it from taking any more than 250ms.

@Hoverbear Hoverbear changed the title Hoverbear/ds 263 telemetry background it and add a Start telemetry earlier and add a timeout Aug 24, 2022
@grahamc grahamc force-pushed the hoverbear/ds-263-telemetry-background-it-and-add-a branch from 742330e to 37d5d1d Compare August 24, 2022 20:29
@Hoverbear Hoverbear marked this pull request as ready for review August 24, 2022 21:22
@Hoverbear Hoverbear requested a review from cole-h August 24, 2022 21:38
@@ -1,3 +1,8 @@
use crate::{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extremely nit-picky, so feel free to ignore, but it'd be swell to group std, external, and internal imports near each-other

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a rustfmt setting if I recall...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

src/dependency_registry/mod.rs Outdated Show resolved Hide resolved
} else {
tracing::trace!("Fetching new registry data from {DEPENDENCY_REGISTRY_REMOTE_URL}");
}
let req = http_client.get(DEPENDENCY_REGISTRY_REMOTE_URL);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the moment this has default timeout as the process will end without blocking if it's held up.

@cole-h cole-h requested a review from grahamc August 25, 2022 18:15
@grahamc grahamc merged commit 9e9a67c into main Aug 26, 2022
@grahamc grahamc deleted the hoverbear/ds-263-telemetry-background-it-and-add-a branch August 26, 2022 13:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants