ipfs-rust / ipfs-embed

A small embeddable ipfs implementation
360 stars 48 forks source link

Make location of the access file configurable #102

Closed rklaehn closed 3 years ago

rklaehn commented 3 years ago

It is not good to use the same file for both! For the block store you want to be paranoid, whereas for the access store you can be as sloppy as you want. If you lose some updates to the access store or even the entire access store, it is no big deal since this is only used for unpinned data...

This PR also makes the case where you are not interested in persisting accesses faster, since it is using the entirely in memory InMemCacheTracker instead of a sqlite tracker in memory mode.