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

Commit 47093d5

Browse files
achingbrainAlan Shaw
authored andcommitted
feat: expose import concurrency controls (#1187)
1 parent fff35c8 commit 47093d5

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
},
4343
"dependencies": {
4444
"abort-controller": "^3.0.0",
45-
"async-iterator-all": "^1.0.0",
4645
"async-iterator-to-pull-stream": "^1.3.0",
4746
"bignumber.js": "^9.0.0",
4847
"bl": "^4.0.0",
@@ -60,6 +59,7 @@
6059
"ipld-dag-pb": "^0.18.1",
6160
"ipld-raw": "^4.0.0",
6261
"is-ipfs": "~0.6.1",
62+
"it-all": "^1.0.1",
6363
"it-glob": "0.0.7",
6464
"it-tar": "^1.1.1",
6565
"it-to-stream": "^0.1.1",

src/add/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ module.exports = configure(({ ky }) => {
2929
if (options.trickle != null) searchParams.set('trickle', options.trickle)
3030
if (options.wrapWithDirectory != null) searchParams.set('wrap-with-directory', options.wrapWithDirectory)
3131
if (options.preload != null) searchParams.set('preload', options.preload)
32+
if (options.fileImportConcurrency != null) searchParams.set('file-import-concurrency', options.fileImportConcurrency)
33+
if (options.blockWriteConcurrency != null) searchParams.set('block-write-concurrency', options.blockWriteConcurrency)
3234

3335
const res = await ky.post('add', {
3436
timeout: options.timeout,

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const PeerId = require('peer-id')
1111
const PeerInfo = require('peer-info')
1212
const nodeify = require('promise-nodeify')
1313
const callbackify = require('callbackify')
14-
const all = require('async-iterator-all')
14+
const all = require('it-all')
1515
const toPullStream = require('async-iterator-to-pull-stream')
1616
const toStream = require('it-to-stream')
1717
const BufferList = require('bl/BufferList')

src/lib/converters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
const toPull = require('async-iterator-to-pull-stream')
4-
const all = require('async-iterator-all')
4+
const all = require('it-all')
55
const toStream = require('it-to-stream')
66
const { Buffer } = require('buffer')
77

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy