mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-06-24 15:02:30 +00:00
Merge pull request #561 from orbitdb/feat/await
docs: remove await outside of an async function in example
This commit is contained in:
commit
dd5df9c8ac
@ -139,8 +139,9 @@ const OrbitDB = require('orbit-db')
|
|||||||
|
|
||||||
const ipfs = IpfsApi('localhost', '5001')
|
const ipfs = IpfsApi('localhost', '5001')
|
||||||
const orbitdb = new OrbitDB(ipfs)
|
const orbitdb = new OrbitDB(ipfs)
|
||||||
const db = await orbitdb.log('hello')
|
orbitdb.log('hello').then(db => {
|
||||||
...
|
// Do something with your db.
|
||||||
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
## API
|
## API
|
||||||
|
Loading…
x
Reference in New Issue
Block a user