Skip to content

Commit

Permalink
fix: update readme code examples
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Sutula <hi@asutula.com>
  • Loading branch information
asutula committed Jul 21, 2020
1 parent 83b76e6 commit 16ff2e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ const { info } = await pow.ffs.info()

// cache data in IPFS in preparation to store it using FFS
const buffer = fs.readFileSync(`path/to/a/file`)
const { cid } = await pow.ffs.addToHot(buffer)
const { cid } = await pow.ffs.stage(buffer)

// store the data in FFS using the default storage configuration
const { jobId } = await pow.ffs.pushConfig(cid)
const { jobId } = await pow.ffs.pushStorageConfig(cid)

// watch the FFS job status to see the storage process progressing
const cancel = pow.ffs.watchJobs((job) => {
Expand All @@ -110,7 +110,7 @@ const cancel = pow.ffs.watchLogs((logEvent) => {
}, cid)

// get the current desired storage configuration for a cid (this configuration may not be realized yet)
const { config } = await pow.ffs.getCidConfig(cid)
const { config } = await pow.ffs.getStorageConfig(cid)

// get the current actual storage configuration for a cid
const { cidinfo } = await pow.ffs.show(cid)
Expand Down

0 comments on commit 16ff2e5

Please sign in to comment.