ipfs-rust / ipfs-embed

A small embeddable ipfs implementation
344 stars 47 forks source link

Make location of the access file configurable #102

Closed rklaehn closed 2 years ago

rklaehn commented 2 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.