fluree / db

Fluree database library
https://fluree.github.io/db/
Other
337 stars 21 forks source link

Update file nameservice format, use with IPFS conn #726

Closed bplatz closed 5 months ago

bplatz commented 7 months ago

IPFS connection types now by default use two nameservices - IPNS and filesystem. The filesystem nameservice is synchronous, and requires a successful write before a commit is confirmed. IPNS is asynchronous and will update as IPNS allows it to.

Note that any connection can have any number of nameservices configured and fed into the conn as an option - so the old behavior is still available if needed, just not the default.

At the same time, the file nameservice needed to be updated as it previously only wrote file system path names as the commit-address - but now it needs to be able to write IPFS commit addresses (and potentially others).

This PR not only makes this address update to the file nameservice, but also

Future steps:

bplatz commented 5 months ago

Plan to close this PR without merging, instead favoring PR #758 - leaving open for now as we have at least one user currently relying on this branch.

cap10morgan commented 5 months ago

@bplatz Good to close this now?