Dead-Code Cleaning

This commit is contained in:
Alexey
2026-10-31 12:19:16 +03:00
parent 61afd6c702
commit cecc8df758
40 changed files with 104 additions and 306 deletions
+3
View File
@@ -133,6 +133,7 @@ pub(super) struct DetachedCarrierEvidence {
/// Result of one generation-fenced policy reconciliation.
pub(super) struct CarrierLearningPolicyOutcome {
/// Current epoch after the reconciliation.
#[cfg(test)]
pub(super) epoch: Option<u64>,
/// Whether this generation was current enough to apply.
pub(super) applied: bool,
@@ -215,6 +216,7 @@ impl CarrierLearning {
.is_some_and(|applied| generation < applied)
{
return CarrierLearningPolicyOutcome {
#[cfg(test)]
epoch: self.epoch,
applied: false,
detached: None,
@@ -239,6 +241,7 @@ impl CarrierLearning {
self.policy_started_at = now;
}
CarrierLearningPolicyOutcome {
#[cfg(test)]
epoch: self.epoch,
applied: true,
detached,
+2
View File
@@ -160,6 +160,7 @@ impl WebProcessRuntime {
}
/// Stops issuance and drains all WEB work until one absolute deadline.
#[cfg(test)]
pub(crate) async fn shutdown_until(
self: &std::sync::Arc<Self>,
deadline: TokioInstant,
@@ -168,6 +169,7 @@ impl WebProcessRuntime {
}
/// Stops issuance and drains WEB work under the currently configured budget.
#[cfg(test)]
pub(crate) async fn shutdown(self: &std::sync::Arc<Self>) -> WebShutdownOutcome {
let timeout_secs = self
.active_runtime