commit | 0f38c07a704225e0e32a3895b17d38f01e2b01ee | [log] [tgz] |
---|---|---|
author | fengmk2 <fengmk2@gmail.com> | Sun Jan 28 10:45:16 2024 +0800 |
committer | GitHub <noreply@github.com> | Sun Jan 28 10:45:16 2024 +0800 |
tree | ace4a2f1a018eda4acdd294ffadd2401daf19ac5 | |
parent | 65b70ed73259e8667e75a94e5162f75e91b4bf1b [diff] |
fix(nodejs): send heart beats every 10 seconds (#677) closes https://github.com/apache/rocketmq-clients/issues/676
diff --git a/nodejs/src/client/BaseClient.ts b/nodejs/src/client/BaseClient.ts index ad67e08..9fa12da 100644 --- a/nodejs/src/client/BaseClient.ts +++ b/nodejs/src/client/BaseClient.ts
@@ -137,7 +137,7 @@ // heartbeat every 10s this.#timers.push(setInterval(async () => { this.#doHeartbeat(); - }, 5 * 60000)); + }, 10000)); // doStats every 60s // doStats()