Add content and snapshot store references

Update database object to hold reference to the
data stores.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
Derek McGowan
2017-08-18 15:16:33 -07:00
parent 447a0a9452
commit 2ab70f21ac
5 changed files with 35 additions and 10 deletions

View File

@@ -23,7 +23,7 @@ func createContentStore(ctx context.Context, root string) (content.Store, func()
return nil, nil, err
}
return NewContentStore(db, cs), func() error {
return NewContentStore(NewDB(db), cs), func() error {
return db.Close()
}, nil
}