mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-03-30 15:08:28 +00:00
fix: Remove console output.
This commit is contained in:
parent
bef35b013c
commit
4a5822c4a1
@ -122,16 +122,13 @@ const OrbitDB = async ({ ipfs, id, identity, identities, directory } = {}) => {
|
||||
if (isValidAddress(address)) {
|
||||
// If the address given was a valid OrbitDB address, eg. '/orbitdb/zdpuAuK3BHpS7NvMBivynypqciYCuy2UW77XYBPUYRnLjnw13'
|
||||
const addr = OrbitDBAddress(address)
|
||||
console.log(1)
|
||||
manifest = await manifestStore.get(addr.hash)
|
||||
const acType = manifest.accessController.split('/', 2).pop()
|
||||
AccessController = getAccessController(acType)()
|
||||
console.log(2)
|
||||
accessController = await AccessController({ orbitdb: { open, identity, ipfs }, identities, address: manifest.accessController })
|
||||
name = manifest.name
|
||||
type = type || manifest.type
|
||||
meta = manifest.meta
|
||||
console.log(3)
|
||||
} else {
|
||||
// If the address given was not valid, eg. just the name of the database
|
||||
type = type || DefaultDatabaseType
|
||||
@ -156,14 +153,12 @@ const OrbitDB = async ({ ipfs, id, identity, identities, directory } = {}) => {
|
||||
|
||||
address = address.toString()
|
||||
|
||||
console.log(4)
|
||||
const db = await Database({ ipfs, identity, address, name, access: accessController, directory, meta, syncAutomatically: sync, headsStorage, entryStorage, indexStorage, referencesCount })
|
||||
|
||||
db.events.on('close', onDatabaseClosed(address))
|
||||
|
||||
databases[address] = db
|
||||
|
||||
console.log(5)
|
||||
return db
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user