This repository was archived by the owner on Aug 11, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const async = require('async')
66// datastore and may retrieve data from a remote Exchange.
77// It uses an internal `datastore.Datastore` instance to store values.
88function BlockService ( ipfsRepo , exchange ) {
9- this . addBlock = ipfsRepo . datastore . put . bind ( ipfsRepo . datastore )
9+ this . addBlock = ipfsRepo . datastore . put
1010
1111 this . addBlocks = ( blocks , callback ) => {
1212 if ( ! Array . isArray ( blocks ) ) {
@@ -18,7 +18,7 @@ function BlockService (ipfsRepo, exchange) {
1818 } , callback )
1919 }
2020
21- this . getBlock = ipfsRepo . datastore . get . bind ( ipfsRepo . datastore )
21+ this . getBlock = ipfsRepo . datastore . get
2222
2323 this . getBlocks = ( multihashes , extension , callback ) => {
2424 if ( typeof extension === 'function' ) {
@@ -45,7 +45,7 @@ function BlockService (ipfsRepo, exchange) {
4545 } )
4646 }
4747
48- this . deleteBlock = ipfsRepo . datastore . delete . bind ( ipfsRepo . datastore )
48+ this . deleteBlock = ipfsRepo . datastore . delete
4949
5050 this . deleteBlocks = ( multihashes , extension , callback ) => {
5151 if ( typeof extension === 'function' ) {
You can’t perform that action at this time.
0 commit comments