We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92dbe33 commit d4bbc5bCopy full SHA for d4bbc5b
lib/spark.js
@@ -113,11 +113,9 @@ export default class Spark {
113
try {
114
await this.fetchCAR(url, stats)
115
success = true
116
- this.#activity.onSuccess()
117
} catch (err) {
118
console.error(`Failed to fetch ${url}`)
119
console.error(err)
120
- this.#activity.onError()
121
}
122
123
await this.submitRetrieval(retrieval.id, { success, ...stats })
@@ -129,6 +127,7 @@ export default class Spark {
129
127
while (true) {
130
128
131
await this.nextRetrieval()
+ this.#activity.onSuccess()
132
133
this.#activity.onError()
134
0 commit comments