Skip to content

Commit f0a8276

Browse files
committed
Fix readme 4
1 parent c671759 commit f0a8276

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ let balancer = new RedisFunctionsBalancer([A, B, C], redisClient);
3333
balancer.setMethods([A, B]);
3434
// ... //
3535
// Get async iterator {done, value}
36-
while ( (foo = await balancer.getAsyncIterator().next()) && !foo.done) {
36+
let iterator = await balancer.getAsyncIterator();
37+
38+
while ( (foo = await iterator.next()) && !foo.done) {
3739
// Your function A|B|C will be here evenly
3840
let method = foo.value;
3941

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redis-functions-balancer",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "Balance NodeJs functions with Redis",
55
"repository": "https://github.com/dmitryuk/RedisFunctionsBalancer",
66
"main": "index.ts",

0 commit comments

Comments
 (0)