New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does the leader need to go through socket? #28
Comments
I guess I don't understand this part: Lines 104 to 114 in 6d5dc4f
|
Also, are we missing a Line 109 in 6d5dc4f
Actually why do we even need |
It does, 99% of the time.
That's to counter the fact that the party starts after the publicly consumed db (i.e. As for why we don't need |
If a I discovered a small bug here: we don't initially unref. You must make at least one db operation for it to work. So this hangs: const name = Date.now().toString()
const db1 = party(name)
const db2 = party(name)
await db1.open()
await db2.open()
console.log('opened')
// Comment this out to not make the event loop hang
// await db1.put('a', 'b')
// console.log(await db2.get('a')) |
Couldn't the leader use the db directly?
The text was updated successfully, but these errors were encountered: