diff --git a/README.md b/README.md index 3df07d9..45d6e4b 100644 --- a/README.md +++ b/README.md @@ -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