From 2e2596a41697731af55153dbb55d4cfb0b541d33 Mon Sep 17 00:00:00 2001 From: David Dias Date: Sat, 3 Feb 2018 16:54:17 +0100 Subject: [PATCH 1/2] Update MISCELLANEOUS.md --- SPEC/MISCELLANEOUS.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SPEC/MISCELLANEOUS.md b/SPEC/MISCELLANEOUS.md index a5a7f6ac..a996e338 100644 --- a/SPEC/MISCELLANEOUS.md +++ b/SPEC/MISCELLANEOUS.md @@ -78,13 +78,13 @@ A great source of [examples][] can be found in the tests for this API. [examples]: https://github.com/ipfs/interface-ipfs-core/blob/master/src/miscellaneous.js -#### `shutdown` +#### `stop` -> Stop the ipfs daemon +> Stops the IPFS node and in case of talking with an IPFS Daemon, it stops the process. ##### `Go` **WIP** -##### `JavaScript` - ipfs.shutdown([callback]) +##### `JavaScript` - ipfs.stop([callback]) `callback` must follow `function (err) {}` signature, where `err` is an error if the operation was not successful. If no `callback` is passed, a promise is returned. @@ -93,7 +93,7 @@ If no `callback` is passed, a promise is returned. ```JavaScript ipfs.shutdown((err) => { - if (err) { + if (err) { throw err } }) From 0db0de317a488d0d9b2a12aaeed70d66e87530e5 Mon Sep 17 00:00:00 2001 From: David Dias Date: Sat, 3 Feb 2018 16:55:03 +0100 Subject: [PATCH 2/2] Update MISCELLANEOUS.md --- SPEC/MISCELLANEOUS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPEC/MISCELLANEOUS.md b/SPEC/MISCELLANEOUS.md index a996e338..9a02d4c8 100644 --- a/SPEC/MISCELLANEOUS.md +++ b/SPEC/MISCELLANEOUS.md @@ -92,7 +92,7 @@ If no `callback` is passed, a promise is returned. **Example:** ```JavaScript -ipfs.shutdown((err) => { +ipfs.stop((err) => { if (err) { throw err }