Skip to content
This repository was archived by the owner on Jan 6, 2026. It is now read-only.

Commit a6dd7b2

Browse files
authored
update sleep 10s between retrievals (#4)
* update sleep 10s between retrievals * const
1 parent b9ecd58 commit a6dd7b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/spark.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* global Zinnia */
22

33
const sleep = dt => new Promise(resolve => setTimeout(resolve, dt))
4+
const DELAY_BETWEEN_RETRIEVALS = 10_000
45

56
// Create activity events when we bacome operational or fail, but only once
67
export class ActivityState {
@@ -135,7 +136,7 @@ export default class Spark {
135136
this.#activity.onError()
136137
console.error(err)
137138
}
138-
await sleep(1_000)
139+
await sleep(DELAY_BETWEEN_RETRIEVALS)
139140
}
140141
}
141142
}

0 commit comments

Comments
 (0)