hldb / welo

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

prep for adding features #10

Closed tabcat closed 2 years ago

tabcat commented 2 years ago

Rework and polish some things before adding features like local database persistence.

tabcat commented 2 years ago

many of the classes have been reworked to fit Libp2p's startable interface. I decided to create the Playable class as a superclass to be extended to reduce some of the duplicate code. Playable implements the Startable interface.

Most classes in Opal were not made to be restarted after stopping. I think this will be useful when working with databases and encourages better state management for classes.

tabcat commented 2 years ago

Working on fixing a lot of the unit tests. The tests dealing with database and database components like Graph, Replica, and Traversal will not be fixed yet. I'm adding local persistence tomorrow and those parts will be affected.