Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 5b736a8

Browse files
alanshawdaviddias
authored andcommitted
fix: reinstates the non local block check in dht.provide (#1250)
1 parent aea69d3 commit 5b736a8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/core/components/dht.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,10 @@ module.exports = (self) => {
121121
if (err) {
122122
return callback(err)
123123
}
124-
/* TODO reconsider this. go-ipfs provides anyway
124+
125125
if (!has) {
126-
return callback(new Error('Not all blocks exist locally, can not provide'))
126+
return callback(new Error('block(s) not found locally, cannot provide'))
127127
}
128-
*/
129128

130129
if (options.recursive) {
131130
// TODO: Implement recursive providing

0 commit comments

Comments
 (0)