Skip to content

Commit

Permalink
タスクを実行するまでに待った時間sleepする時間を減らします
Browse files Browse the repository at this point in the history
  • Loading branch information
kahirokunn committed Apr 15, 2024
1 parent 5a1baab commit cbf001c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/kubekit-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kubekit/client",
"version": "0.0.19",
"version": "0.0.20",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"author": "kahirokunn",
Expand Down
2 changes: 1 addition & 1 deletion packages/kubekit-client/src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ class Debounce {
const oldestElapsedTime = now - getOldestPushedAt

if (this.#maxWaitMilliSeconds > oldestElapsedTime && this.#waitMilliSeconds > currentElapsedTime) {
await sleep(this.#waitMilliSeconds);
await sleep(this.#waitMilliSeconds - currentElapsedTime);
}
if (BigInt(resourceVersion) === getLatestResourceVersion()) {
this.#cache.delete(cacheKey);
Expand Down

0 comments on commit cbf001c

Please sign in to comment.