@peerbit/shared-log 16.0.1 → 16.0.3
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/dist/src/coordinate-persistence.d.ts +18 -1
- package/dist/src/coordinate-persistence.d.ts.map +1 -1
- package/dist/src/coordinate-persistence.js +61 -4
- package/dist/src/coordinate-persistence.js.map +1 -1
- package/dist/src/index.d.ts +17 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +301 -201
- package/dist/src/index.js.map +1 -1
- package/dist/src/sync/simple.d.ts +1 -0
- package/dist/src/sync/simple.d.ts.map +1 -1
- package/dist/src/sync/simple.js +1 -1
- package/dist/src/sync/simple.js.map +1 -1
- package/package.json +11 -11
- package/src/coordinate-persistence.ts +66 -5
- package/src/index.ts +391 -257
- package/src/sync/simple.ts +1 -1
package/src/sync/simple.ts
CHANGED
|
@@ -325,7 +325,7 @@ export const SYNC_MESSAGE_PRIORITY = CONVERGENCE_MESSAGE_PRIORITY;
|
|
|
325
325
|
// large historical backfills.
|
|
326
326
|
const SIMPLE_SYNC_RETRY_AFTER_MS = 10_000;
|
|
327
327
|
const EXCHANGE_HEAD_RESPONSE_DEDUPE_TTL_MS = SIMPLE_SYNC_RETRY_AFTER_MS - 1_000;
|
|
328
|
-
const RECENT_KNOWN_EXCHANGE_HEAD_SUPPRESSION_MS = 30_000;
|
|
328
|
+
export const RECENT_KNOWN_EXCHANGE_HEAD_SUPPRESSION_MS = 30_000;
|
|
329
329
|
const PENDING_MAYBE_SYNC_RESPONSE_TTL_MS = 30_000;
|
|
330
330
|
// An incoming maybe-sync claim keeps one retry candidate in both
|
|
331
331
|
// syncInFlightQueue and syncInFlightQueueInverted. Bound associations rather
|