Skip to content

Commit

Permalink
docs: Wait for libp2p to be instantiated.
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenyoung committed Dec 29, 2024
1 parent d3f7b63 commit 0941fe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ OrbitDB Liftoff also includes default Libp2p configurations for Node.js and brow
import { createOrbitDB } from '@orbitdb/core'
import { DefaultLibp2pOptions } from '@orbitdb/liftoff'

const libp2p = createLibp2p({ ...DefaultLibp2pOptions })
const libp2p = await createLibp2p({ ...DefaultLibp2pOptions })
const ipfs = await createHelia({ libp2p })

const orbitdb = await createOrbitDB({ ipfs })
Expand Down

0 comments on commit 0941fe2

Please sign in to comment.