Update task service to use metadata content store

Address feedback and fix issues

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
Derek McGowan
2017-07-06 15:37:25 -07:00
parent b6d58f63a8
commit 4322664b88
6 changed files with 12 additions and 8 deletions

View File

@@ -62,6 +62,7 @@ func New(ic *plugin.InitContext) (interface{}, error) {
if err != nil {
return nil, err
}
cs := metadata.NewContentStore(m.(*bolt.DB), ct.(content.Store))
runtimes := make(map[string]runtime.Runtime)
for _, rr := range rt {
r := rr.(runtime.Runtime)
@@ -71,7 +72,7 @@ func New(ic *plugin.InitContext) (interface{}, error) {
return &Service{
runtimes: runtimes,
db: m.(*bolt.DB),
store: ct.(content.Store),
store: cs,
emitter: e,
}, nil
}