This is an automated email from the ASF dual-hosted git repository.

lizhanhui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-clients.git


The following commit(s) were added to refs/heads/master by this push:
     new 0f38c07a fix(nodejs): send heart beats every 10 seconds (#677)
0f38c07a is described below

commit 0f38c07a704225e0e32a3895b17d38f01e2b01ee
Author: fengmk2 <[email protected]>
AuthorDate: Sun Jan 28 10:45:16 2024 +0800

    fix(nodejs): send heart beats every 10 seconds (#677)
    
    closes https://github.com/apache/rocketmq-clients/issues/676
---
 nodejs/src/client/BaseClient.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nodejs/src/client/BaseClient.ts b/nodejs/src/client/BaseClient.ts
index ad67e085..9fa12dae 100644
--- a/nodejs/src/client/BaseClient.ts
+++ b/nodejs/src/client/BaseClient.ts
@@ -137,7 +137,7 @@ export abstract class BaseClient {
     // heartbeat every 10s
     this.#timers.push(setInterval(async () => {
       this.#doHeartbeat();
-    }, 5 * 60000));
+    }, 10000));
 
     // doStats every 60s
     // doStats()

Reply via email to