-
Notifications
You must be signed in to change notification settings - Fork 13
Start telemetry earlier and add a timeout #55
Start telemetry earlier and add a timeout #55
Conversation
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. |
742330e
to
37d5d1d
Compare
src/dependency_registry/mod.rs
Outdated
@@ -1,3 +1,8 @@ | |||
use crate::{ |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is, but it's not stabilized, sadly: https://rust-lang.github.io/rustfmt/?version=v1.5.1&search=#group_imports, rust-lang/rustfmt#5083.
} else { | ||
tracing::trace!("Fetching new registry data from {DEPENDENCY_REGISTRY_REMOTE_URL}"); | ||
} | ||
let req = http_client.get(DEPENDENCY_REGISTRY_REMOTE_URL); |
There was a problem hiding this comment.
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.
(Based off #52 )