@afokapu/atdd-flow 0.3.75 → 0.3.76
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/extensions/pi/index.ts +5 -1
- package/package.json +1 -1
package/extensions/pi/index.ts
CHANGED
|
@@ -217,7 +217,11 @@ export function createInboxTransport({ root, seat, deliver, batchSize = defaultB
|
|
|
217
217
|
};
|
|
218
218
|
const start = async () => {
|
|
219
219
|
await reconcile();
|
|
220
|
-
try {
|
|
220
|
+
try {
|
|
221
|
+
// Watch a path that exists before the first queued mail, so a newly created queue wakes promptly.
|
|
222
|
+
await mkdir(pendingDirectory(root, seat), { recursive: true });
|
|
223
|
+
watcher = fs.watch(pendingDirectory(root, seat), () => { void reconcile(); });
|
|
224
|
+
}
|
|
221
225
|
catch { /* Periodic reconciliation recovers unavailable watchers. */ }
|
|
222
226
|
interval = setInterval(() => { void reconcile(); }, intervalMs);
|
|
223
227
|
};
|