Skip to content
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

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

Open
johanbove opened this issue Apr 9, 2022 · 1 comment

Comments

@johanbove
Copy link
Contributor

johanbove commented Apr 9, 2022

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
Copy link
Contributor

sgwilym commented Apr 11, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants