mirror of
https://github.com/telemt/telemt.git
synced 2026-11-22 15:26:37 +03:00
Dead-Code Cleaning
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user