automerge-repo icon indicating copy to clipboard operation
automerge-repo copied to clipboard

An unavailable document may just not be found yet

Open acurrieclark opened this issue 1 year ago • 0 comments

Consider the following:

  1. 2 peers, Alice, Bob. Bob has a share policy of false.
  2. Alice tries to find a document which neither of them has. It isn't available, so that gets marked as unavailable on both peers.
  3. Bob now gets that document, but their share policy means that it doesn't get shared immediately with Alice.
  4. If Alice tries to find the document again, there will be an immediate unavailable event fired, but at the same time it will sync it from Bob and then the document will resolve.

My question is, should we remove the immediate unavailable event until another sync attempt has been made?

acurrieclark avatar Feb 09 '24 18:02 acurrieclark