Skip to content

Commit a95457e

Browse files
authored
Merge branch 'main' into manual-check-frisbii
2 parents 5df10d4 + d103cc5 commit a95457e

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

lib/constants.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const SPARK_VERSION = '1.14.2'
1+
export const SPARK_VERSION = '1.14.3'
22
export const MAX_CAR_SIZE = 200 * 1024 * 1024 // 200 MB
33
export const APPROX_ROUND_LENGTH_IN_MS = 20 * 60_000 // 20 minutes
44
export const RPC_URL = 'https://api.node.glif.io/'

lib/spark.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ export default class Spark {
100100
const carBuffer = new ArrayBuffer(0, { maxByteLength: MAX_CAR_SIZE })
101101
const carBytes = new Uint8Array(carBuffer)
102102

103+
stats.startAt = new Date()
104+
103105
try {
104106
const url = getRetrievalUrl(protocol, address, cid)
105107
console.log(`Fetching: ${url}`)
@@ -232,7 +234,7 @@ export default class Spark {
232234
export function newStats () {
233235
return {
234236
timeout: false,
235-
startAt: new Date(),
237+
startAt: null,
236238
firstByteAt: null,
237239
endAt: null,
238240
carTooLarge: false,

test/integration.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ test('integration', async () => {
1313
const res = await fetch(`https://api.filspark.com/measurements/${measurementId}`)
1414
assert(res.ok)
1515
const retrieval = await res.json()
16-
assert(retrieval.startAt)
16+
assert(retrieval.indexerResult)
1717
assert(retrieval.finishedAt)
1818
})
1919

0 commit comments

Comments
 (0)