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

Remove promisify (since already promisified) #869

Merged
merged 1 commit into from
May 25, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions examples/basics/index-es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
const fs = require('fs')
const os = require('os')
const path = require('path')
const promisify = require('promisify-es6')
// const IPFS = require('../../src/core')
// replace this by line below if you are using ipfs as a dependency of your
// project
Expand Down Expand Up @@ -39,16 +38,14 @@ node.version()
* Initialize the repo for this node
*/
.then(() => {
// we need to promisify node.init to return a promise
return promisify(node.init)({ emptyRepo: true, bits: 2048 })
return node.init({ emptyRepo: true, bits: 2048 })
})

/*
* Take the node online (bitswap, network and so on)
*/
.then(() => {
// we need to promisify node.start to return a promise
return promisify(node.start)()
return node.start()
})

/*
Expand Down