orbitdb-archive / ipfs-log

Append-only log CRDT on IPFS
https://orbitdb.github.io/ipfs-log/
MIT License
398 stars 55 forks source link

fix: length calculation based on unique additions to the log #192

Closed aphelionz closed 5 years ago

aphelionz commented 5 years ago

Description

A better, less expensive fix for the _length problem. @haadcode had suggested migrating this to the javascript Set primitive and I think that this will be a worthy endeavor to do at a later date. Many of these problems would go away, in addition to all of the required _*Index objects

haadcode commented 5 years ago

Thanks @aphelionz for the PR and fix! ❤️Looks good to me.