Fixed example code in Guide.md

Fixed await operator outside of async function.
This commit is contained in:
Gadzook8 2019-06-05 05:07:37 -06:00 committed by GitHub
parent 1db381d5de
commit 6c75c0ee86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,7 @@ const ipfsOptions = {
// Create IPFS instance // Create IPFS instance
const ipfs = new IPFS(ipfsOptions) const ipfs = new IPFS(ipfsOptions)
ipfs.on('ready', () => { ipfs.on('ready', async () => {
// Create OrbitDB instance // Create OrbitDB instance
const orbitdb = await OrbitDB.createInstance(ipfs) const orbitdb = await OrbitDB.createInstance(ipfs)
}) })