You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -934,9 +911,7 @@ This method returns a promise that resolves once the limiter is connected to Red
934
911
As of v2.9.0, it's no longer necessary to wait for `.ready()` to resolve before issuing commands to a limiter. The commands will be queued until the limiter successfully connects. Make sure to listen to the `"error"` event to handle connection errors.
935
912
936
913
```js
937
-
constlimiter=newBottleneck({
938
-
/* options */
939
-
});
914
+
constlimiter=newBottleneck({/* options */});
940
915
941
916
limiter.on("error", (err) => {
942
917
// handle network errors
@@ -952,9 +927,7 @@ limiter.ready().then(() => {
952
927
This method broadcasts the `message` string to every limiter in the Cluster. It returns a promise.
953
928
954
929
```js
955
-
constlimiter=newBottleneck({
956
-
/* options */
957
-
});
930
+
constlimiter=newBottleneck({/* options */});
958
931
959
932
limiter.on("message", (msg) => {
960
933
console.log(msg); // prints "this is a string"
@@ -1002,9 +975,7 @@ import Redis from "redis"; // or ioredis: import Redis from "ioredis";
1002
975
// Use Bottleneck.IORedisConnection when using ioredis
0 commit comments