func OpenStoreCollection(dir string, options StoreOptions,
persistOptions StorePersistOptions) (*Store, Collection, error) {
store, err := OpenStore(dir, options)
if err != nil {
return nil, nil, err
}
coll, err := store.OpenCollection(options, persistOptions)
if err != nil {
store.Close()
return nil, nil, err
}
return store, coll, nil
}
Hi, for me it's not clear why both
OpenStoreandOpenCollectionneed aStoreOptionsparameter? Is there a case to use differentStoreOptionsforOpenStoreandstore.OpenCollection? If they need to be the same isn't it safer to only setStoreOptionson theOpenStorecall so no bug's can ocurre whenStoreOptionsget changed between the two calls?