-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Persistent local state for docs #1474
Comments
Later: this is a can of worms, lets not open it before the release |
Lets use a toml file, like a config file to store this. It should be easy to add and remove documents from this using your texteditor. |
I second this, in particular b/c I don't think we're ready to have iroh nodes auto-subscribe to all documents by default on phones. Using a toml file means it'll be more of a console / CLI thing, and we can decide on if this needs to be baked into the core (thus shipping to all platforms) after we get a better sense of user expectations |
We will want to persist some instance-local state for each doc. This includes:
iroh-net
level.How/where do we want to store this info?
iroh_sync::Store
trait withset_local(namespace: NamespaceId, key: Vec<u8>, value: Vec<u8>)
andget_local(namespace: NamespaceId, key: &[u8])
methods, which would persist to the same storage backend as replica data (soredb
in the default case).IROH_DATA_DIR
. Would need some care to not share this accidentally, but might also be a feature.redb
directly in the upperiroh
crate to persist this dataIROH_DATA_DIR
I'm leaning to the first idea of these, but not super sure yet. Ideas, opinions?
The text was updated successfully, but these errors were encountered: