earthstar-project / earthstar

Storage for private, distributed, offline-first applications.
https://earthstar-project.org
GNU Lesser General Public License v3.0
624 stars 18 forks source link

Refactor sync pulls a little #248

Closed sgwilym closed 2 years ago

sgwilym commented 2 years ago

This makes it so that pulls for share states and queries are made separately depending on whether they are caught up or not. Also fixes an issue where the maxLocalIndexOverall of the other side was not being calculated properly.