Unverified Commit 58d4a764 authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #82 from nasdf/master

Add WithDatastore option.
parents fe35a3cf 75e93666
...@@ -589,3 +589,11 @@ func WithRebroadcastInitialDelay(duration time.Duration) Option { ...@@ -589,3 +589,11 @@ func WithRebroadcastInitialDelay(duration time.Duration) Option {
return nil return nil
} }
} }
// WithDatastore returns an option that overrides the default datastore.
func WithDatastore(datastore ds.Datastore) Option {
return func(store *PubsubValueStore) error {
store.ds = datastore
return nil
}
}
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