Skip to content

Commit

Permalink
Fix readme 3
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryuk committed Jan 2, 2021
1 parent fa6db11 commit c671759
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ npm install redis-functions-balancer --save-prod

## Usage
```typescript
import CallableBalancer from "@coden/redis-functions-balancer";
import RedisFunctionsBalancer from "redis-functions-balancer";
const redis = require("redis");
const redisClient = redis.createClient(6379, 'redis');

Expand All @@ -28,7 +28,7 @@ const A = () => {};
const B = () => {};
const C = () => {};
// ... //
let balancer = new CallableBalancer([A, B, C], redisClient);
let balancer = new RedisFunctionsBalancer([A, B, C], redisClient);
// or reuse balancer variable with another functions
balancer.setMethods([A, B]);
// ... //
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "redis-functions-balancer",
"version": "1.0.2",
"version": "1.0.3",
"description": "Balance NodeJs functions with Redis",
"repository": "https://github.com/dmitryuk/RedisFunctionsBalancer",
"main": "index.ts",
Expand Down

0 comments on commit c671759

Please sign in to comment.