earthstar-project / website

The Earthstar website.
https://earthstar-project.org
4 stars 9 forks source link

Playground otherReplica description says "no documents", but documents got already synced, line 92 #13

Open johanbove opened 2 years ago

johanbove commented 2 years ago

The "Playground" instructions say:

If we run otherReplica.getLatestDocs, we'll get an empty array. It doesn't have any documents in it yet. Let's put this replica in another peer so we can change that!

In fact, my otherReplica did already have the documents. Is it so that as soon as a replica is instantiated with a shareAddress, it will directly sync if it is nearby?

See https://github.com/earthstar-project/website/blob/main/docs/docs/playground.mdx, line 92

sgwilym commented 2 years ago

D'oh, I just realised I wrote it so that both replicas both use the same driver. That's why they're already 'synced' — they're essentially the same replica.