| Index: impl/memory/datastore.go
|
| diff --git a/impl/memory/datastore.go b/impl/memory/datastore.go
|
| index 8001295d74ea8e7e570bcafd3b8b049c3cc0c3e2..24cc55bc9ac37aef98f463ca77faa7e3b436a336 100644
|
| --- a/impl/memory/datastore.go
|
| +++ b/impl/memory/datastore.go
|
| @@ -54,10 +54,13 @@ func useRDS(c context.Context) context.Context {
|
| // These settings can of course be changed by using the Testable() interface.
|
| func NewDatastore(aid, ns string) (ds.Interface, error) {
|
| ctx := UseWithAppID(context.Background(), aid)
|
| - ctx, err := info.Get(ctx).Namespace(ns)
|
| - if err != nil {
|
| - return nil, err
|
| + if ns != "" {
|
| + var err error
|
| + if ctx, err = info.Get(ctx).Namespace(ns); err != nil {
|
| + return nil, err
|
| + }
|
| }
|
| +
|
| ret := ds.Get(ctx)
|
| t := ret.Testable()
|
| t.AutoIndex(true)
|
|
|