This repository was archived by the owner on Aug 11, 2021. It is now read-only.
Commit 5627f47 1 parent 3734683 commit 5627f47 Copy full SHA for 5627f47
File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ class BlockService {
61
61
return this . _bitswap . put ( block , callback )
62
62
}
63
63
64
- this . _repo . blockstore . put ( block , callback )
64
+ this . _repo . blocks . put ( block , callback )
65
65
}
66
66
67
67
/**
@@ -76,7 +76,7 @@ class BlockService {
76
76
return this . _bitswap . putMany ( blocks , callback )
77
77
}
78
78
79
- this . _repo . blockstore . putMany ( blocks , callback )
79
+ this . _repo . blocks . putMany ( blocks , callback )
80
80
}
81
81
82
82
/**
@@ -91,7 +91,7 @@ class BlockService {
91
91
return this . _bitswap . get ( cid , callback )
92
92
}
93
93
94
- return this . _repo . blockstore . get ( cid , callback )
94
+ return this . _repo . blocks . get ( cid , callback )
95
95
}
96
96
97
97
/**
@@ -102,7 +102,7 @@ class BlockService {
102
102
* @return {void }
103
103
*/
104
104
delete ( cid , callback ) {
105
- this . _repo . blockstore . delete ( cid , callback )
105
+ this . _repo . blocks . delete ( cid , callback )
106
106
}
107
107
}
108
108
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ module.exports = (repo) => {
96
96
waterfall ( [
97
97
( cb ) => bs . put ( b , cb ) ,
98
98
( cb ) => bs . delete ( b . cid , cb ) ,
99
- ( cb ) => bs . _repo . blockstore . has ( b . cid , cb ) ,
99
+ ( cb ) => bs . _repo . blocks . has ( b . cid , cb ) ,
100
100
( res , cb ) => {
101
101
expect ( res ) . to . be . eql ( false )
102
102
cb ( )
You can’t perform that action at this time.
0 commit comments