Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
docs: fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Nov 7, 2016
1 parent ba92397 commit dd6a083
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion QmT78zSuBmuS4z925WZfrqQ1qHaJ56DQaTfyMUF7F8ff5o

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,18 @@ const node = new IPFS(repo)

// We need to init our repo, in this case the repo was empty
// We are picking 2048 bits for the RSA key that will be our PeerId
ipfs.init({ emptyRepo: true, bits: 2048 }, (err) => {
node.init({ emptyRepo: true, bits: 2048 }, (err) => {
if (err) { throw err }

// Once the repo is initiated, we have to load it so that the IPFS
// instance has its config values. This is useful when you have
// previous created repos and you don't need to generate a new one
ipfs.load((err) => {
node.load((err) => {
if (err) { throw err }

// Last but not the least, we want our IPFS node to use its peer
// connections to fetch and serve blocks from.
ipfs.goOnline((err) => {
node.goOnline((err) => {
if (err) { throw err }
// Here you should be good to go and call any IPFS function
})
Expand Down
Empty file added examples/.gitkeep
Empty file.

0 comments on commit dd6a083

Please sign in to comment.