Skip to content

Commit

Permalink
fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
aquiladev committed Jun 27, 2020
1 parent 07b7535 commit 50bb9f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pinners/infura.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const IpfsHttpClient = require('ipfs-http-client');
const all = require('it-all');
const fsPath = require('path');
const { globSource } = IpfsHttpClient;

module.exports = {
name: 'Infura',
Expand All @@ -19,7 +18,8 @@ module.exports = {
const { path, timeout, verbose } = options;
const root = fsPath.basename(path);

const source = await all(client.globSource(path, { recursive: true })).catch((err) => { throw err; });
const source = await all(api.globSource(path, { recursive: true }), { pin: true, timeout })
.catch((err) => { throw err; });

let rootHash;
for await (const file of source) {
Expand Down

0 comments on commit 50bb9f2

Please sign in to comment.