Merge pull request #561 from orbitdb/feat/await

docs: remove await outside of an async function in example
This commit is contained in:
shamb0t 2019-02-09 11:11:24 +00:00 committed by GitHub
commit dd5df9c8ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,8 +139,9 @@ const OrbitDB = require('orbit-db')
const ipfs = IpfsApi('localhost', '5001')
const orbitdb = new OrbitDB(ipfs)
const db = await orbitdb.log('hello')
...
orbitdb.log('hello').then(db => {
// Do something with your db.
})
```
## API