mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-03-30 15:08:28 +00:00
14 lines
275 B
JavaScript
14 lines
275 B
JavaScript
/**
|
|
* Stop an IPFS or ipfsd-ctl instance
|
|
* @param {Object} config [IPFS ipfsd-ctl to stop]
|
|
* @return {None}
|
|
*/
|
|
export default (ipfs) => {
|
|
return new Promise((resolve, reject) => {
|
|
ipfs.stop((err) => {
|
|
if (err) { reject(err) }
|
|
resolve()
|
|
})
|
|
})
|
|
}
|