Skip to content
This repository has been archived by the owner on Sep 30, 2023. It is now read-only.

Sort list of items that requires to grant the Write access by their clocks #326

Open
pashoo2 opened this issue Apr 2, 2021 · 0 comments

Comments

@pashoo2
Copy link

pashoo2 commented Apr 2, 2021

https://github.com/orbitdb/ipfs-log/blob/17cc191f0b253e881539ca1c91e59d65b89ba6e9/src/log.js#L398

E.g. i need it to compare the previous item stored in the DB with the item, that requests a write access currently. So i need the previous item in comparison by their clock time, not by items they are added.

And, maybe, even better to pass all the lists of a new and a stored items to the "canAppend" callback

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant