aboutsummaryrefslogtreecommitdiff
path: root/broker_ipc
diff options
context:
space:
mode:
authorDavid Stevens <stevensd@chromium.org>2024-03-28 11:24:09 +0900
committercrosvm LUCI <crosvm-scoped@luci-project-accounts.iam.gserviceaccount.com>2024-04-09 01:38:03 +0000
commita21444be9dc8b8da874b98e5c858b08b650eb332 (patch)
treeea4edd8928cc6550278c34f6cedf1e0a63816196 /broker_ipc
parent1dd411950beeb5e157d8fe53489c2314c0cfc2a5 (diff)
downloadcrosvm-a21444be9dc8b8da874b98e5c858b08b650eb332.tar.gz
metrics: Switch metrics from Tube to SendTube
Switch the metrics client API from Tube to SendTube for more specific typing. We're already making downstream breaking vendor changes, so it's a good time to do this cleanup. BUG=b:332466813 TEST=./tools/dev_container ./tools/presubmit all Change-Id: Id870da0298291955496e0fa339142ac379a49d37 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5404371 Reviewed-by: Noah Gold <nkgold@google.com> Commit-Queue: David Stevens <stevensd@chromium.org>
Diffstat (limited to 'broker_ipc')
-rw-r--r--broker_ipc/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/broker_ipc/src/lib.rs b/broker_ipc/src/lib.rs
index 4f396615a..71a7313ee 100644
--- a/broker_ipc/src/lib.rs
+++ b/broker_ipc/src/lib.rs
@@ -17,7 +17,7 @@ use base::EnabledHighResTimer;
use base::FromRawDescriptor;
use base::IntoRawDescriptor;
use base::SafeDescriptor;
-use base::Tube;
+use base::SendTube;
#[cfg(feature = "process-invariants")]
pub use broker_ipc_product::init_broker_process_invariants;
use broker_ipc_product::init_child_crash_reporting;
@@ -33,7 +33,7 @@ use serde::Serialize;
pub struct CommonChildStartupArgs {
log_args: LogArgs,
syslog_file: Option<SafeDescriptor>,
- metrics_tube: Option<Tube>,
+ metrics_tube: Option<SendTube>,
product_attrs: ProductAttributes,
}
@@ -44,7 +44,7 @@ impl CommonChildStartupArgs {
syslog_path: Option<PathBuf>,
#[cfg(feature = "crash-report")] _crash_attrs: crash_report::CrashReportAttributes,
#[cfg(feature = "process-invariants")] _process_invariants: EmulatorProcessInvariants,
- metrics_tube: Option<Tube>,
+ metrics_tube: Option<SendTube>,
) -> anyhow::Result<Self> {
Ok(Self {
log_args: log_args.clone(),