diff --git a/src/ZB.MOM.WW.MxGateway.Worker/MxAccess/FailoverAlarmConsumer.cs b/src/ZB.MOM.WW.MxGateway.Worker/MxAccess/FailoverAlarmConsumer.cs index b40c614..079c8b9 100644 --- a/src/ZB.MOM.WW.MxGateway.Worker/MxAccess/FailoverAlarmConsumer.cs +++ b/src/ZB.MOM.WW.MxGateway.Worker/MxAccess/FailoverAlarmConsumer.cs @@ -65,13 +65,6 @@ public sealed class FailoverAlarmConsumer : IMxAccessAlarmConsumer private bool disposed; private DateTime lastProbeAtUtc = DateTime.MinValue; - /// - /// The subscription expression passed to . - /// Stored for documentation and potential future full re-subscribe - /// scenarios; the primary is NOT re-subscribed during probing. - /// - private string subscriptionExpression = string.Empty; - /// /// Composes the failover consumer over its two children. /// @@ -119,9 +112,9 @@ public sealed class FailoverAlarmConsumer : IMxAccessAlarmConsumer { if (disposed) throw new ObjectDisposedException(nameof(FailoverAlarmConsumer)); - // Store for documentation; the primary is not torn down on failover - // and is therefore not re-subscribed during ProbeOnce. - subscriptionExpression = subscription; + // The primary is not torn down on failover and is therefore never + // re-subscribed during ProbeOnce, so the subscription expression does + // not need to be retained here. // Arm the standby first so it is warm regardless of primary outcome. // A standby subscribe failure is a hard fault (the fallback itself is