We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec2fd4e commit 68c6519Copy full SHA for 68c6519
1 file changed
libdd-data-pipeline/src/trace_exporter/builder.rs
@@ -298,13 +298,12 @@ impl TraceExporterBuilder {
298
));
299
}
300
301
- let shared_runtime =
302
- self.shared_runtime
303
- .unwrap_or(Arc::new(SharedRuntime::new().map_err(|e| {
304
- TraceExporterError::Builder(BuilderErrorKind::InvalidConfiguration(
305
- e.to_string(),
306
- ))
307
- })?));
+ let shared_runtime = match self.shared_runtime {
+ Some(rt) => rt,
+ None => Arc::new(SharedRuntime::new().map_err(|e| {
+ TraceExporterError::Builder(BuilderErrorKind::InvalidConfiguration(e.to_string()))
+ })?),
+ };
308
309
let dogstatsd = self.dogstatsd_url.and_then(|u| {
310
new(Endpoint::from_slice(&u)).ok() // If we couldn't set the endpoint return
0 commit comments