mafintosh / hyperdb

Distributed scalable database
MIT License
752 stars 75 forks source link

fix and simplify authorized #100

Closed mafintosh closed 6 years ago

mafintosh commented 6 years ago

Fixes the issue found by @jimpick in #98 by making the authorized algo simpler.

This approach simply recursively crawls the authorized writers (starting at the source) to see if one of them matches a key. Can be optimized in the future with some caching if need be, but should be more than fast enough for a while.

/cc @jimpick @noffle

mafintosh commented 6 years ago

(@jimpick confirmed it fixed his issue so merging)