@@ -47,7 +47,7 @@ func TestFetchIPLDPrimeNode(t *testing.T) {
4747 hasBlock := peers [0 ]
4848 defer hasBlock .Exchange .Close ()
4949
50- err := hasBlock .Blockstore () .Put (bg , block )
50+ err := hasBlock .Blockstore .Put (bg , block )
5151 require .NoError (t , err )
5252
5353 err = hasBlock .Exchange .NotifyNewBlocks (bg , block )
@@ -56,7 +56,7 @@ func TestFetchIPLDPrimeNode(t *testing.T) {
5656 wantsBlock := peers [1 ]
5757 defer wantsBlock .Exchange .Close ()
5858
59- wantsGetter := blockservice .New (wantsBlock .Blockstore () , wantsBlock .Exchange )
59+ wantsGetter := blockservice .New (wantsBlock .Blockstore , wantsBlock .Exchange )
6060 fetcherConfig := bsfetcher .NewFetcherConfig (wantsGetter )
6161 session := fetcherConfig .NewSession (context .Background ())
6262
@@ -98,15 +98,15 @@ func TestFetchIPLDGraph(t *testing.T) {
9898 defer hasBlock .Exchange .Close ()
9999
100100 blocks := []blocks.Block {block1 , block2 , block3 , block4 }
101- err := hasBlock .Blockstore () .PutMany (bg , blocks )
101+ err := hasBlock .Blockstore .PutMany (bg , blocks )
102102 require .NoError (t , err )
103103 err = hasBlock .Exchange .NotifyNewBlocks (bg , blocks ... )
104104 require .NoError (t , err )
105105
106106 wantsBlock := peers [1 ]
107107 defer wantsBlock .Exchange .Close ()
108108
109- wantsGetter := blockservice .New (wantsBlock .Blockstore () , wantsBlock .Exchange )
109+ wantsGetter := blockservice .New (wantsBlock .Blockstore , wantsBlock .Exchange )
110110 fetcherConfig := bsfetcher .NewFetcherConfig (wantsGetter )
111111 session := fetcherConfig .NewSession (context .Background ())
112112 ctx , cancel := context .WithTimeout (context .Background (), time .Second )
@@ -155,15 +155,15 @@ func TestFetchIPLDPath(t *testing.T) {
155155 defer hasBlock .Exchange .Close ()
156156
157157 blocks := []blocks.Block {block1 , block2 , block3 , block4 , block5 }
158- err := hasBlock .Blockstore () .PutMany (bg , blocks )
158+ err := hasBlock .Blockstore .PutMany (bg , blocks )
159159 require .NoError (t , err )
160160 err = hasBlock .Exchange .NotifyNewBlocks (bg , blocks ... )
161161 require .NoError (t , err )
162162
163163 wantsBlock := peers [1 ]
164164 defer wantsBlock .Exchange .Close ()
165165
166- wantsGetter := blockservice .New (wantsBlock .Blockstore () , wantsBlock .Exchange )
166+ wantsGetter := blockservice .New (wantsBlock .Blockstore , wantsBlock .Exchange )
167167 fetcherConfig := bsfetcher .NewFetcherConfig (wantsGetter )
168168 session := fetcherConfig .NewSession (context .Background ())
169169 ctx , cancel := context .WithTimeout (context .Background (), time .Second )
@@ -219,15 +219,15 @@ func TestHelpers(t *testing.T) {
219219 defer hasBlock .Exchange .Close ()
220220
221221 blocks := []blocks.Block {block1 , block2 , block3 , block4 }
222- err := hasBlock .Blockstore () .PutMany (bg , blocks )
222+ err := hasBlock .Blockstore .PutMany (bg , blocks )
223223 require .NoError (t , err )
224224 err = hasBlock .Exchange .NotifyNewBlocks (bg , blocks ... )
225225 require .NoError (t , err )
226226
227227 wantsBlock := peers [1 ]
228228 defer wantsBlock .Exchange .Close ()
229229
230- wantsGetter := blockservice .New (wantsBlock .Blockstore () , wantsBlock .Exchange )
230+ wantsGetter := blockservice .New (wantsBlock .Blockstore , wantsBlock .Exchange )
231231
232232 t .Run ("Block retrieves node" , func (t * testing.T ) {
233233 fetcherConfig := bsfetcher .NewFetcherConfig (wantsGetter )
@@ -334,15 +334,15 @@ func TestNodeReification(t *testing.T) {
334334 defer hasBlock .Exchange .Close ()
335335
336336 blocks := []blocks.Block {block2 , block3 , block4 }
337- err := hasBlock .Blockstore () .PutMany (bg , blocks )
337+ err := hasBlock .Blockstore .PutMany (bg , blocks )
338338 require .NoError (t , err )
339339 err = hasBlock .Exchange .NotifyNewBlocks (bg , blocks ... )
340340 require .NoError (t , err )
341341
342342 wantsBlock := peers [1 ]
343343 defer wantsBlock .Exchange .Close ()
344344
345- wantsGetter := blockservice .New (wantsBlock .Blockstore () , wantsBlock .Exchange )
345+ wantsGetter := blockservice .New (wantsBlock .Blockstore , wantsBlock .Exchange )
346346 fetcherConfig := bsfetcher .NewFetcherConfig (wantsGetter )
347347 nodeReifier := func (lnkCtx ipld.LinkContext , nd ipld.Node , ls * ipld.LinkSystem ) (ipld.Node , error ) {
348348 return & selfLoader {Node : nd , ctx : lnkCtx .Ctx , ls : ls }, nil
0 commit comments