Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gobengo committed Dec 20, 2023
1 parent dc2538b commit 1081edd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/content-claims/content-claims-blockstore.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ import * as Link from 'multiformats/link'
import * as raw from 'multiformats/codecs/raw'
import { asyncIterableReader, readBlockHead } from '@ipld/car/decoder'
import errCode from 'err-code'
import { Block } from 'multiformats/block'

/* global ReadableStream */
/* global WritableStream */
/* global TransformStream */

/**
Expand Down Expand Up @@ -189,7 +187,7 @@ async function * fetchBlocksForLocationClaims (claims, link) {
claim,
location,
block,
response,
response
})
}
}
Expand Down Expand Up @@ -247,10 +245,8 @@ async function * fetchBlocksForRelationClaims (claims, link, carpark, index) {

// if the index is not included in the claim, look for it in the CARPARK R2 BUcket
if (!indexBlock && includes.parts?.length) {

// the index may be in several part Blocks we'll need to concatenate
for (const part of includes.parts) {

// part is a CARLink to a car-multihash-index-sorted
// look up a CAR containing that part CID via CARPARK
const blob = await carpark.get(`${part}/${part}.car`).then(r => r.blob())
Expand Down

0 comments on commit 1081edd

Please sign in to comment.