Skip to content

Commit

Permalink
filter by type
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Jul 17, 2018
1 parent 38eb64a commit 87cc9b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bundles/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const bundle = createAsyncResourceBundle({
} else if (provs[file.hash] !== -1) {
provs[file.hash] = -1
getIpfs().dht.findprovs(file.hash, { timeout: '5s', 'num-providers': 5 })
.then((peers) => { provs[file.hash] = peers.length })
.then((peers) => { provs[file.hash] = peers.filter(t => t.Type === 4).length })
.catch(console.log)
}
})
Expand Down

0 comments on commit 87cc9b1

Please sign in to comment.