Skip to content

Commit 211161d

Browse files
authored
Merge pull request #143 from nitish661401869/master
[email protected]: Fix bug in ClusterService.ts.
2 parents f31c8f1 + 2b24228 commit 211161d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
[![Join the chat at https://gitter.im/hazelcast-incubator/hazelcast-nodejs-client](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/hazelcast-incubator/hazelcast-nodejs-client?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
2424
<br></br>
2525

26-
This document explains Node.js client for Hazelcast which uses Hazelcast's Open Client Protocol 1.0. This client works with Hazelcast 3.6 and higher.
26+
This document explains Node.js client for Hazelcast which uses Hazelcast's Open Client Protocol 1.0. This client works with Hazelcast 3.6 and higher.
2727

2828
**Hazelcast** is a clustering and highly scalable data distribution platform. With its various distributed data structures, distributed caching capabilities, elastic nature and more importantly with so many happy users, Hazelcast is a feature-rich, enterprise-ready and developer-friendly in-memory data grid solution.
2929

@@ -87,6 +87,7 @@ Follow the below steps to build and install Hazelcast Node.js client from its so
8787
- Install the dependencies using the command `npm install`.
8888
- Compile TypeScript using the command `npm run compile`.
8989
- Link the package locally using the command `npm link`.
90+
- Run static analysis tool using the command `npm run lint`
9091

9192
## Using Locally Installed Package
9293

src/invocation/ClusterService.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,10 @@ class ClusterService extends EventEmitter {
143143
deferred.reject(error);
144144
return;
145145
} else {
146-
setTimeout(this.tryAddressIndex(0, attemptLimit, attemptPeriod, deferred), attemptPeriod);
146+
setTimeout(
147+
this.tryAddressIndex.bind(this, 0, attemptLimit, attemptPeriod, deferred),
148+
attemptPeriod
149+
);
147150
}
148151
} else {
149152
var currentAddress = this.knownAddresses[index];

0 commit comments

Comments
 (0)