Closed Stebalien closed 6 years ago
List of what is actually used and how (chocked by searching for usages on latest gx version used by go-ipfs):
callback
coalesce
datastore tests (which is not used)tiered
datastore tests (which is not used)coalesce
elastigo
fs
keytransform
namespace
mount
namespace
mount
, syncmount
, in go-ipfs for blackstore
, filestore
panic
sync
syncmount
tiered
timecache
Datastores in basic_ds.go:
MapDatastore
:
NullDatastore
:
LogDatastore
:
So I'd say we should remove callback
, coalesce
, elastigo
, fs
, mount
, tiered
and timecache
, @Stebalien LGTY?
And probably just rename syncmount
to mount
LGTM. @whyrusleeping? You should probably sign off on this since we're deleting code.
@magik6k @Stebalien lets make a tag on the commit the code exists in before we delete it, and note it in an issue somewhere. After that, SGTM
Some of those might be useful as examples, such as fs
and may be worth keeping around. Maybe we can move those to the examples directory.
I agree that some of them might be useful (e.g., tiered, timecache) but I'd actually like to get rid of the fs
one, even if we keep the others. It's insecure/broken by default (it uses the key names as the file names without modifying them).
The idea was to move it to the examples directory as use it as documentation, not to keep around as a useful datastore. However, I am not set on the idea, any other trivial datastore could serve the same purpose.
Yeah, I see the value as documentation... I guess we could just put a big warning saying "don't actually do it this way".
I would also move it under examples/fs
.
Having to maintain old, unused, untested code is a pain (they won't work anyways because most of them haven't really been tested).