hldb / welo

peer-to-peer, collaborative states using Merkle-CRDTs
Other
32 stars 2 forks source link

fix: prevent the heads promise from throwing #114

Closed saul-jb closed 6 months ago

saul-jb commented 6 months ago

This PR simply moves the deferred promise to the end of the method so that if any of the sync code throws an error (#113) it doesn't prevent the awaiting of the deferred promise.