Skip to content

Commit ec30ba6

Browse files
committed
Merge pull request #103 from okland/patch-1
Update store.js
2 parents 1f37f6e + 96ee8ce commit ec30ba6

File tree

1 file changed

+2
-2
lines changed
  • lib/server/discovery_backends/mongo

1 file changed

+2
-2
lines changed

lib/server/discovery_backends/mongo/store.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function getRandomWeighted(serviceName, endpointHash, weight) {
7474

7575
var randomValue = Math.random();
7676
if(randomValue < weight) {
77-
// satisfied for the wieght, go with the normal random selection
77+
// satisfied for the weight, go with the normal random selection
7878
return this.getRandom(serviceName);
7979
} else {
8080
var removedService = this.byEndpointHash(endpointHash);
@@ -107,4 +107,4 @@ function _ensureStore(serviceName) {
107107
if(!this._endpointMapsByService[serviceName]) {
108108
this._endpointMapsByService[serviceName] = {};
109109
}
110-
};
110+
};

0 commit comments

Comments
 (0)