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

remove bitswap.unwant #353

Merged
merged 1 commit into from
Aug 28, 2018
Merged
Show file tree
Hide file tree
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
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.