diff --git a/README.md b/README.md index 8595d6f..bd3b59f 100644 --- a/README.md +++ b/README.md @@ -139,11 +139,9 @@ const OrbitDB = require('orbit-db') const ipfs = IpfsClient('localhost', '5001') -OrbitDB.createInstance(ipfs).then(async (orbitdb) => { - const db = await orbitdb.log('hello') - // Do something with your db. -}) - +const orbitdb = await OrbitDB.createInstance(ipfs) +const db = await orbitdb.log('hello') +// Do something with your db. ``` ## API