You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using OrbitDBAccessController results in - "Message": "unable to create store: unable to acquire an access controller: unable to create access controller: the OrbitDB instance must provide a key value store" #161
// NewIPFSAccessController Returns a default access controller for OrbitDB database
func NewOrbitDBAccessController(ctx context.Context, db iface.BaseOrbitDB, params accesscontroller.ManifestParams, options ...accesscontroller.Option) (accesscontroller.Interface, error) {
if db == nil {
return &orbitDBAccessController{}, fmt.Errorf("an OrbitDB instance is required")
}
kvDB, ok := db.(iface.OrbitDBKVStoreProvider)
if !ok {
return &orbitDBAccessController{}, fmt.Errorf("the OrbitDB instance must provide a key value store")
}
Somehow expects db which is BaseOrbitDB to implement OrbitDBKVStoreProvider.
Current behavior
"Message": "unable to create store: unable to acquire an access controller: unable to create access controller: the OrbitDB instance must provide a key value store"
Expected behavior
Create a document store with OrbitDBAccessController