Update metadata plugin initialization
Updates metadata plugin to require content and snapshotter plugins be loaded and initializes with those plugins, keeping the metadata database structure static after initialization. Service plugins now only require metadata plugin access snapshotter or content stores through metadata, which was already required behavior of the services. Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
@@ -23,7 +23,7 @@ func createContentStore(ctx context.Context, root string) (content.Store, func()
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
return NewContentStore(NewDB(db), cs), func() error {
|
||||
return NewDB(db, cs, nil).ContentStore(), func() error {
|
||||
return db.Close()
|
||||
}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user