@agfpd/iapeer 0.2.61 → 0.2.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/shadow/index.ts +4 -1
package/package.json
CHANGED
package/src/shadow/index.ts
CHANGED
|
@@ -122,7 +122,10 @@ export async function runShadowFidelity(opts: ShadowOptions): Promise<void> {
|
|
|
122
122
|
for (;;) {
|
|
123
123
|
if (opts.maxMinutes && Date.now() - t0 >= opts.maxMinutes * 60000) break
|
|
124
124
|
if (existsSync(stopFile)) break
|
|
125
|
-
|
|
125
|
+
// Re-enroll every ~3 ticks (~15s), not 15 (~75s): a freshly-woken peer must be enrolled
|
|
126
|
+
// and sampled DURING its not-ready phase for a readiness transition (the center cell) to
|
|
127
|
+
// register — a 75s enroll-lag could first-sight it already-ready and miss the transition.
|
|
128
|
+
if (i > 0 && i % 3 === 0) enumerate(models, opts, tracker)
|
|
126
129
|
tracker.tickStart(models.size)
|
|
127
130
|
for (const o of models.values()) {
|
|
128
131
|
try {
|