mafintosh / hyperdb

Distributed scalable database
MIT License
753 stars 75 forks source link

Fixes for ._waitForUpdate() #123

Closed jimpick closed 6 years ago

jimpick commented 6 years ago

The db has header now, so this shouldn't be necessary.

This was causing .readFile() from hyperdrive#hyperdb-backend to not call it's callback.

jimpick commented 6 years ago

Maybe this was needed ... now .authorized() seems to be broken. (edit: see comment below)

jimpick commented 6 years ago

Nevermind my last comment... it seems to be working now.

jimpick commented 6 years ago

I think it still needs a wait in there... I'll try another approach to fix it.

jimpick commented 6 years ago

This seems to be mostly working now.

mafintosh commented 6 years ago

I think that nextTick "need" is a hypercore bug

mafintosh commented 6 years ago

I think we fixed this in master but feel free to reopen if not