OverviewFilesCommitsIssuesDocsReleasesPeers

hyper-rooms commits / f110042

adopt keet-pattern Autobase config: optimistic + ackInterval + ackThreshold
Same change as hyper-identity — sets the canonical multi-writer Autobase options on Room's underlying Autobase so non-indexer writers actually work without making everyone an indexer. See hyper-identity commit for full rationale + cross-machine validation (pear-git-v3/test/keet-pattern-e2e.js). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
f1100426beb8193a7610c99b9956d4c0e537d193
by plankatron <fleeky@gmail.com> · 2026-05-02T14:44:50.000Z

Changed files (1) +6 -1

lib/room.js +6 -1
……@@ -70,6 +70,8 @@ export class Room extends ReadyResource {
7070 this._corestore = corestore.namespace(this._namespace)
7171 this._bootstrapKey = this._normalizeKey(opts.bootstrapKey)
7272
73 // Canonical multi-writer Autobase config — see hyper-identity/identity-registry.js
74 // for full rationale. optimistic+ackInterval+ackThreshold = keet pattern.
7375 this._base = new Autobase(this._corestore, this._bootstrapKey, {
7476 open: (store) => {
7577 const core = store.get(this._viewName, { valueEncoding: 'json' })
……@@ -79,7 +81,10 @@ export class Room extends ReadyResource {
7981 })
8082 },
8183 apply: this._apply.bind(this),
82 valueEncoding: 'binary'
84 valueEncoding: 'binary',
85 optimistic: true,
86 ackInterval: 1000,
87 ackThreshold: 4
8388 })
8489 }
8590