Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
fix: remove bitswap.unwant (#353)
Browse files Browse the repository at this point in the history
fixes #339
  • Loading branch information
Stebalien authored and alanshaw committed Aug 28, 2018
1 parent e5f5b59 commit 6065f63
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 106 deletions.
27 changes: 0 additions & 27 deletions SPEC/BITSWAP.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,8 @@
# Bitswap API

* [bitswap.wantlist](#bitswapwantlist)
* [bitswap.unwant](#bitswapunwant)
* [bitswap.stat](#bitswapstat)

#### `bitswap.unwant`

> Removes a given block from your wantlist
##### `Go` **WIP**

##### `JavaScript` - ipfs.bitswap.unwant(cid, [callback])

`cid` is a [cid][cid] which can be passed as:

- CID, a CID instance
- String, the base58 encoded version of the multihash

`callback` must follow `function (err) {}` signature, where `err` is an error if the operation was not successful.

**Example:**

```JavaScript
ipfs.bitswap.unwant('QmSoLSafTMBsPKadTEgaXctDQVcqN88CNLHXMkTNwMKPnu', (err) => {
if (err) throw err
console.log('Done')
})
```

##### `Go` **WIP**

### `bitswap.wantlist`

> Returns the wantlist, optionally filtered by peer ID
Expand Down
1 change: 1 addition & 0 deletions js/src/bitswap/.tern-port
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
36541
3 changes: 1 addition & 2 deletions js/src/bitswap/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ const { createSuite } = require('../utils/suite')

const tests = {
stat: require('./stat'),
wantlist: require('./wantlist'),
unwant: require('./unwant')
wantlist: require('./wantlist')
}

module.exports = createSuite(tests)
77 changes: 0 additions & 77 deletions js/src/bitswap/unwant.js

This file was deleted.

0 comments on commit 6065f63

Please sign in to comment.