Commit 415b3531 authored by Steven Allen's avatar Steven Allen Committed by vyzo

doc: document WithDatastore option

Co-authored-by: default avatarAdin Schmahmann <adin.schmahmann@gmail.com>
parent aa54bc9e
...@@ -78,7 +78,7 @@ func WithDNSResolver(rslv madns.BasicResolver) Option { ...@@ -78,7 +78,7 @@ func WithDNSResolver(rslv madns.BasicResolver) Option {
} }
} }
// WithDatastore is an option that supplies a datastore to use instead of an in-memory map datastore. // WithDatastore is an option that supplies a datastore to use instead of an in-memory map datastore. The datastore is used to store published IPNS records and make them available for querying.
func WithDatastore(ds ds.Datastore) Option { func WithDatastore(ds ds.Datastore) Option {
return func(ns *mpns) error { return func(ns *mpns) error {
ns.ds = ds ns.ds = ds
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment