docs: remove await outside of an async function in example

See #549.
This commit is contained in:
Richard Littauer 2019-02-08 08:41:24 -05:00
parent 70ad147eab
commit ba8ef59419

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