test(otopcua): Once re-discovery reruns one pass per reconnect + comment tidy (follow-up B)
This commit is contained in:
@@ -805,10 +805,11 @@ public sealed class DriverInstanceActor : ReceiveActor, IWithTimers
|
||||
|
||||
Context.Parent.Tell(new DiscoveredNodesReady(_driverInstanceId, nodes));
|
||||
|
||||
// Honour the driver's re-discovery policy. A Once driver discovers synchronously in its single
|
||||
// DiscoverAsync, so a single published pass is complete — do not schedule another tick. (Never never
|
||||
// reaches here — StartDiscovery returns before the first tick.) UntilStable falls through to the
|
||||
// stop-on-stable + attempt-cap logic below.
|
||||
// Honour the driver's re-discovery policy. A Once driver runs a single post-connect pass per
|
||||
// (re)connect regardless of whether DiscoverAsync is synchronous or async — one published pass is
|
||||
// complete, so the retry loop is skipped (no further tick scheduled). (Never never reaches here —
|
||||
// StartDiscovery returns before the first tick.) UntilStable falls through to the stop-on-stable +
|
||||
// attempt-cap logic below.
|
||||
if (discovery.RediscoverPolicy == DiscoveryRediscoverPolicy.Once)
|
||||
{
|
||||
_log.Debug("DriverInstance {Id}: RediscoverPolicy=Once — single discovery pass, not scheduling another", _driverInstanceId);
|
||||
|
||||
Reference in New Issue
Block a user